/*
 * Module code.
 *
 * Generated by SIP 4.19.3
 *
 * Copyright (c) 2017 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 41 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 37 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 40 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 45 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 51 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 54 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 57 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 60 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 63 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 66 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 69 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 72 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 75 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 78 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 81 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 84 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 87 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 90 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 93 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 98 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 104 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 107 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 110 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 113 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 116 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 119 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 122 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 125 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 128 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 131 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 134 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 137 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 140 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 143 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 146 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 149 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 152 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 155 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 158 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 161 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 164 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 400 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 167 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 372 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 170 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 173 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 176 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 179 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 182 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 185 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 188 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 293 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 191 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 194 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 197 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 202 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 174 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qline.sip"
#include <qline.h>
#line 208 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qline.sip"
#include <qline.h>
#line 211 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 214 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 217 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 220 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 223 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 226 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 275 "sip/QtCore/qpycore_qhash.sip"
#include <qhash.h>
#line 229 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 232 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 235 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 238 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 241 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 244 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 247 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 250 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 256 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 96 "sip/QtCore/qurl.sip"
#include <qurl.h>
#line 259 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 262 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 265 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 268 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 271 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 274 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 277 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 280 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 283 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 286 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixelformat.sip"
#include <qpixelformat.h>
#line 289 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 326 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 292 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 295 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qquaternion.sip"
#include <qquaternion.h>
#line 298 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 301 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrgba64.sip"
#include <qrgba64.h>
#line 304 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 307 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 310 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 313 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 316 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 319 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 324 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 327 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 123 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 330 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 165 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 333 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 183 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 336 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 211 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 339 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qdesktopservices.sip"
#include <qdesktopservices.h>
#line 342 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 426 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 345 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 437 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 348 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 607 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 354 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 359 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 901 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 365 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 368 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 179 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 371 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 331 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 374 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 377 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 632 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 380 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 781 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 383 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 927 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 1073 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 389 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 392 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 395 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 62 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 400 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 83 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 405 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 408 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 411 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 121 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 414 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 417 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 420 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 423 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 124 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 426 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglpixeltransferoptions.sip"
#include <qopenglpixeltransferoptions.h>
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 432 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 435 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 438 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 441 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 444 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 449 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 455 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 458 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 461 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 464 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 33 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 469 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 472 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstatictext.sip"
#include <qstatictext.h>
#line 475 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 478 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 481 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 484 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocumentfragment.sip"
#include <qtextdocumentfragment.h>
#line 487 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 490 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 493 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 496 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 499 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 502 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 505 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 508 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 511 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 516 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 132 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 519 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 82 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 524 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 152 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 529 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 233 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 532 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 257 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 538 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 84 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 543 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 546 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 549 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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', 'O', 'p', 'e', 'n', 'G', 'L', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'O', 'b', 'j', 'e', 'c', 't', ':', ':', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'R', 'e', 's', 't', 'o', 'r', 'e', 'P', 'o', 'l', 'i', 'c', 'y', 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', 'P', 'l', 'a', 't', 'f', 'o', 'r', 'm', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'E', 'v', 'e', 'n', 't', ':', ':', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'E', 'v', 'e', 'n', 't', 'T', 'y', 'p', 'e', 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,
    's', 'e', 't', 'F', 'a', 'l', 'l', 'b', 'a', 'c', 'k', 'S', 'e', 's', 's', 'i', 'o', 'n', 'M', 'a', 'n', 'a', 'g', 'e', 'm', 'e', 'n', 't', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 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', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'C', 'o', 'm', 'p', 'a', 'r', 'i', 's', 'o', 'n', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 0,
    'R', 'e', 's', 't', 'o', 'r', 'e', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'o', 'D', 'e', 'f', 'a', 'u', 'l', 't', 0,
    'i', 's', 'F', 'a', 'l', 'l', 'b', 'a', 'c', 'k', 'S', 'e', 's', 's', 'i', 'o', 'n', 'M', 'a', 'n', 'a', 'g', 'e', 'm', 'e', 'n', 't', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 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', 'I', 'c', 'o', 'n', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'S', 'c', 'a', 'l', 'e', 'd', 'P', 'i', 'x', 'm', 'a', 'p', 'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', 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,
    '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', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 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,
    'a', 'd', 'd', 'C', 'a', 'c', 'h', 'e', 'a', 'b', 'l', 'e', 'S', 'h', 'a', 'd', 'e', 'r', 'F', 'r', 'o', 'm', 'S', 'o', 'u', 'r', 'c', 'e', 'F', 'i', 'l', 'e', 0,
    'a', 'd', 'd', 'C', 'a', 'c', 'h', 'e', 'a', 'b', 'l', 'e', 'S', 'h', 'a', 'd', 'e', 'r', 'F', 'r', 'o', 'm', 'S', 'o', 'u', 'r', 'c', 'e', 'C', 'o', 'd', 'e', 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', 'm', 'a', 'g', 'e', 'I', 'O', 'H', 'a', 'n', 'd', 'l', 'e', 'r', ':', ':', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 's', 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,
    'm', 'o', 'u', 's', 'e', 'D', 'o', 'u', 'b', 'l', 'e', 'C', 'l', 'i', 'c', 'k', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 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,
    'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 'M', 'i', 'r', 'r', 'o', 'r', 'A', 'n', 'd', 'R', 'o', 't', 'a', 't', 'e', '9', '0', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', 'I', 'O', 'H', 'a', 'n', 'd', 'l', 'e', 'r', ':', ':', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 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,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'C', 'o', 'm', 'p', 'a', 'r', 'i', 's', 'o', 'n', 'M', 'o', 'd', 'e', 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,
    'S', 'R', 'G', 'B', '8', '_', 'P', 'u', 'n', 'c', 'h', 'T', 'h', 'r', 'o', 'u', 'g', 'h', '_', 'A', 'l', 'p', 'h', 'a', '1', '_', 'E', 'T', 'C', '2', 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,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'B', 'l', 'i', 't', 't', 'e', 'r', ':', ':', 'O', 'r', 'i', 'g', 'i', 'n', 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,
    'D', 'o', 'n', 't', 'R', 'e', 's', 't', 'o', 'r', 'e', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'B', 'i', 'n', 'd', 'i', 'n', 'g', 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,
    'q', 't', '_', 's', 'e', 't', '_', 's', 'e', 'q', 'u', 'e', 'n', 'c', 'e', '_', 'a', 'u', 't', 'o', '_', 'm', 'n', 'e', 'm', 'o', 'n', 'i', 'c', 0,
    'i', 'n', 'p', 'u', 't', 'I', 't', 'e', 'm', 'C', 'l', 'i', 'p', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 'F', 'l', 'i', 'p', 'A', 'n', 'd', 'R', 'o', 't', 'a', 't', 'e', '9', '0', 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,
    'a', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'D', 'i', 's', 'p', 'l', 'a', 'y', 'N', 'a', 'm', 'e', 'C', 'h', 'a', 'n', 'g', '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,
    'k', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 'I', 'n', 'p', 'u', 't', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 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,
    '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,
    'T', 'e', 'x', 't', 'u', 'r', 'e', 'C', 'o', 'm', 'p', 'a', 'r', 'i', 's', 'o', 'n', 'O', 'p', 'e', 'r', 'a', 't', 'o', 'r', '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,
    'P', 'd', 'm', 'D', 'e', 'v', 'i', 'c', 'e', 'P', 'i', 'x', 'e', 'l', 'R', 'a', 't', 'i', 'o', 'S', 'c', 'a', 'l', 'e', 'd', 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,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'E', 'x', 't', 'e', 'r', 'n', 'a', 'l', 'O', 'E', 'S', 'T', 'a', 'r', 'g', 'e', 't', 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,
    'R', 'e', 's', 't', 'o', 'r', 'e', 'F', 'r', 'a', 'm', 'e', 'B', 'u', 'f', 'f', 'e', 'r', 'B', 'i', 'n', 'd', 'i', 'n', 'g', 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,
    'S', 'u', 'r', 'f', 'a', 'c', 'e', 'A', 'b', 'o', 'u', 't', 'T', 'o', 'B', 'e', 'D', 'e', 's', 't', 'r', 'o', 'y', 'e', 'd', 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,
    's', 't', 'a', 'r', 't', 'D', 'r', 'a', 'g', 'D', 'i', 's', 't', 'a', 'n', 'c', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 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,
    'w', 'h', 'e', 'e', 'l', 'S', 'c', 'r', 'o', 'l', 'l', 'L', 'i', 'n', 'e', 's', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    't', 'a', 'b', 'F', 'o', 'c', 'u', 's', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 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,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '1', '2', 'x', '1', '2', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '1', '2', 'x', '1', '0', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '1', '0', 'x', '1', '0', 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,
    's', 'e', 't', 'P', 'r', 'o', 'g', 'r', 'e', 's', 's', 'i', 'v', 'e', 'S', 'c', 'a', 'n', 'W', 'r', 'i', 't', '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,
    'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 'R', 'o', 't', 'a', 't', 'e', '2', '7', '0', 0,
    'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 'R', 'o', 't', 'a', 't', 'e', '1', '8', '0', 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', 'P', 'o', 'i', 'n', 't', 'i', 'n', 'g', 'D', 'e', 'v', 'i', 'c', 'e', 'U', 'n', 'i', 'q', 'u', 'e', 'I', 'd', 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,
    'S', 'h', 'o', 'w', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'T', 'e', 'r', 'm', 'i', 'n', 'a', 't', 'o', 'r', 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,
    'u', 's', 'e', 'H', 'o', 'v', 'e', 'r', 'E', 'f', 'f', 'e', 'c', 't', 's', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'c', 'u', 'r', 's', 'o', 'r', 'F', 'l', 'a', 's', 'h', 'T', 'i', 'm', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 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,
    'd', 'e', 'v', 'i', 'c', 'e', 'P', 'i', 'x', 'e', 'l', 'R', 'a', 't', 'i', 'o', 'F', 'S', 'c', 'a', 'l', 'e', 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,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '1', '0', 'x', '8', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '1', '0', 'x', '6', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '1', '0', 'x', '5', 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,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'T', 'h', 'r', 'e', 'a', 'd', 'e', 'd', 'O', 'p', 'e', 'n', 'G', 'L', 0,
    'a', 'n', 'c', 'h', 'o', 'r', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'i', 'n', 'p', 'u', 't', 'I', 't', 'e', 'm', 'C', 'l', 'i', 'p', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', '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,
    'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 'R', 'o', 't', 'a', 't', 'e', '9', '0', 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,
    's', 'i', 'n', 'g', 'l', 'e', 'C', 'l', 'i', 'c', 'k', 'A', 'c', 't', 'i', 'v', 'a', 't', 'i', 'o', 'n', 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,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'B', 'l', 'i', 't', 't', 'e', 'r', 0,
    's', 'e', 't', 'C', 'o', 'm', 'p', 'a', 'r', 'i', 's', 'o', 'n', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 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,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '8', 'x', '8', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '8', 'x', '6', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '8', 'x', '5', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '6', 'x', '6', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '6', 'x', '5', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '5', 'x', '5', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '5', 'x', '4', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'A', 'S', 'T', 'C', '_', '4', 'x', '4', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', '_', 'E', 'T', 'C', '2', '_', 'E', 'A', 'C', 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,
    'Q', 'P', 'l', 'a', 't', 'f', 'o', 'r', 'm', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'E', 'v', 'e', 'n', 't', 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,
    's', 't', 'a', 'r', 't', 'D', 'r', 'a', 'g', 'T', 'i', 'm', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 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,
    'p', 'r', 'o', 'g', 'r', 'e', 's', 's', 'i', 'v', 'e', 'S', 'c', 'a', 'n', 'W', 'r', 'i', 't', 'e', 0,
    'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 'M', 'i', 'r', 'r', 'o', 'r', 0,
    'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'e', 'd', 'B', 'y', 'D', 'e', 'f', 'a', 'u', 'l', 't', 0,
    'p', 'r', 'i', 'm', 'a', 'r', 'y', 'S', 'c', 'r', 'e', 'e', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 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,
    'C', 'o', 'm', 'p', 'a', 'r', 'e', 'R', 'e', 'f', 'T', 'o', 'T', 'e', 'x', 't', 'u', 'r', 'e', 0,
    'C', 'o', 'm', 'p', 'a', 'r', 'e', 'G', 'r', 'e', 'a', 't', 'e', 'r', 'E', 'q', 'u', 'a', 'l', 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,
    'I', 'm', 'a', 'g', 'e', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 0,
    'r', 'e', 'i', 'n', 't', 'e', 'r', 'p', 'r', 'e', 't', 'A', 's', 'F', 'o', 'r', 'm', 'a', '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,
    's', 'e', 't', 'U', 's', 'e', 'H', 'o', 'v', 'e', 'r', 'E', 'f', 'f', 'e', 'c', 't', 's', 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,
    'f', 'r', 'o', 'm', 'R', 'o', 't', 'a', 't', 'i', 'o', 'n', 'M', 'a', 't', 'r', 'i', 'x', 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,
    'c', 'o', 'm', 'p', 'a', 'r', 'i', 's', 'o', 'n', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 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', 'i', 'p', 'M', 'a', 'p', 'L', 'e', 'v', 'e', 'l', 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,
    'a', 'd', 'd', 'C', 'o', 'l', 'o', 'r', 'A', 't', 't', 'a', 'c', 'h', 'm', 'e', 'n', 't', 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,
    'g', 'l', 'o', 'b', 'a', 'l', 'S', 'h', 'a', 'r', 'e', 'C', 'o', 'n', 't', 'e', 'x', 't', 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,
    'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 'F', 'l', 'i', 'p', 0,
    'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 'N', 'o', 'n', 'e', 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,
    's', 'e', 't', 'D', 'e', 's', 'k', 't', 'o', 'p', 'F', 'i', 'l', 'e', 'N', 'a', 'm', 'e', 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,
    'R', 'e', 's', 'e', 't', 'N', 'o', 't', 'i', 'f', 'i', 'c', 'a', 't', 'i', 'o', 'n', 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,
    'q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 'A', 'l', 'p', 'h', 'a', 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,
    'd', 'e', 'v', 'i', 'c', 'e', 'P', 'i', 'x', 'e', 'l', 'R', 'a', 't', 'i', 'o', 'F', 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,
    's', 'e', 't', 'R', 'e', 'd', 'B', 'l', 'u', 'e', 'S', 'w', 'i', 'z', 'z', 'l', 'e', 0,
    's', 'e', 't', 'C', 'o', 'm', 'p', 'a', 'r', 'i', 's', 'o', 'n', 'M', 'o', 'd', 'e', 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', 'e', 't', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'O', 'p', 't', 'i', 'm', 'i', 'z', 'e', 'd', 'W', 'r', 'i', 't', '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,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'G', 'r', 'a', 'y', 's', 'c', 'a', 'l', 'e', '8', 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,
    'w', 'h', 'e', 'e', 'l', 'S', 'c', 'r', 'o', 'l', 'l', 'L', 'i', 'n', 'e', 's', 0,
    't', 'a', 'b', 'F', 'o', 'c', 'u', 's', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 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', 'R', 'o', 'l', 'e', 'N', 'a', 'm', 'e', 's', 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,
    't', 'o', 'R', 'o', 't', 'a', 't', 'i', 'o', 'n', 'M', 'a', 't', 'r', 'i', 'x', 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,
    'O', 'r', 'i', 'g', 'i', 'n', 'B', 'o', 't', 't', 'o', 'm', 'L', 'e', 'f', 't', 0,
    'C', 'o', 'm', 'm', 'p', 'a', 'r', 'e', 'N', 'o', 't', 'E', 'q', 'u', 'a', 'l', 0,
    'C', 'o', 'm', 'p', 'a', 'r', 'e', 'L', 'e', 's', 's', 'E', 'q', 'u', 'a', 'l', 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,
    's', 'e', 't', 'A', 'u', 't', 'o', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 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,
    'S', 'c', 'a', 'l', 'e', 'd', 'P', 'i', 'x', 'm', 'a', 'p', 'H', 'o', 'o', 'k', 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,
    's', 'u', 'r', 'f', 'a', 'c', 'e', 'E', 'v', 'e', 'n', 't', 'T', 'y', 'p', 'e', 0,
    't', 'o', 'u', 'c', 'h', 'P', 'o', 'i', 'n', 't', 'S', 't', 'a', 't', 'e', 's', 0,
    'e', 'l', 'l', 'i', 'p', 's', 'e', 'D', 'i', 'a', 'm', 'e', 't', 'e', 'r', '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,
    'u', 's', 'e', 'H', 'o', 'v', 'e', 'r', 'E', 'f', 'f', 'e', 'c', 't', 's', 0,
    's', 'h', 'o', 'w', 'I', 's', 'M', 'a', 'x', 'i', 'm', 'i', 'z', 'e', 'd', 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,
    's', 'e', 't', 'U', 's', 'e', 'r', 'T', 'r', 'i', 's', 't', 'a', 't', 'e', 0,
    's', 'e', 't', 'A', 'u', 't', 'o', 'T', 'r', 'i', 's', 't', 'a', 't', 'e', 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,
    'u', 'n', 'p', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'f', 'r', 'o', 'm', 'E', 'u', 'l', 'e', 'r', 'A', 'n', 'g', 'l', 'e', 's', 0,
    'g', 'e', 't', 'A', 'x', 'i', 's', 'A', 'n', 'd', 'A', 'n', 'g', 'l', 'e', 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,
    's', 'o', 'u', 'r', 'c', 'e', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    't', 'a', 'r', 'g', 'e', 't', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 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,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '1', '2', 'x', '1', '2', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '1', '2', 'x', '1', '0', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '1', '0', 'x', '1', '0', 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', '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,
    's', 'e', 't', 'N', 'a', 't', 'i', 'v', 'e', 'H', 'a', 'n', 'd', 'l', 'e', 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,
    'a', 'n', 'c', 'h', 'o', 'r', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', '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,
    'd', 'e', 's', 'k', 't', 'o', 'p', 'F', 'i', 'l', 'e', 'N', 'a', 'm', 'e', 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,
    'i', 's', 'P', 'r', 'i', 'v', 'a', 't', 'e', 'F', 'a', 'm', 'i', 'l', 'y', 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', 'S', 'i', 'z', '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,
    'M', 'o', 'u', 's', 'e', 'E', 'm', 'u', 'l', 'a', 't', 'i', 'o', 'n', 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,
    'i', 's', 'U', 's', 'e', 'r', 'T', 'r', 'i', 's', 't', 'a', 't', 'e', 0,
    'i', 's', 'A', 'u', 't', 'o', 'T', 'r', 'i', 's', 't', 'a', 't', 'e', 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,
    'g', 'e', 't', 'E', 'u', 'l', 'e', 'r', 'A', 'n', 'g', 'l', '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,
    'c', 'o', 'm', 'p', 'a', 'r', 'i', 's', 'o', 'n', 'M', 'o', 'd', 'e', 0,
    'C', 'o', 'm', 'p', 'a', 'r', 'e', 'G', 'r', 'e', 'a', 't', 'e', 'r', 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', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '1', '0', 'x', '8', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '1', '0', 'x', '6', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '1', '0', 'x', '5', 0,
    'R', 'G', 'B', 'A', '8', '_', 'E', 'T', 'C', '2', '_', 'E', 'A', 'C', 0,
    'R', 'G', '1', '1', '_', 'E', 'A', 'C', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', 'G', '1', '1', '_', 'E', 'A', 'C', '_', 'U', 'N', 'o', 'r', 'm', 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,
    'o', 'p', 't', 'i', 'm', 'i', 'z', 'e', 'd', 'W', 'r', 'i', 't', 'e', 0,
    's', 'e', 't', 'C', 'o', 'm', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0,
    't', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', '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', 'u', 'r', 'f', 'a', 'c', 'e', 'C', 'r', 'e', 'a', 't', 'e', 'd', 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,
    'r', 'e', 'q', 'u', 'e', 's', 't', 'U', 'p', 'd', 'a', 't', 'e', 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', 'V', 'G', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 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,
    'i', 's', 'T', 'r', 'a', 'n', 's', 'p', 'a', 'r', 'e', 'n', 't', 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,
    't', 'o', 'E', 'u', 'l', 'e', 'r', 'A', 'n', 'g', 'l', 'e', 's', 0,
    'f', 'r', 'o', 'm', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 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,
    '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,
    'O', 'r', 'i', 'g', 'i', 'n', 'T', 'o', 'p', 'L', 'e', 'f', 't', 0,
    'C', 'o', 'm', 'p', 'a', 'r', 'e', 'A', 'l', 'w', 'a', 'y', 's', 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,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '8', 'x', '8', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '8', 'x', '6', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '8', 'x', '5', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '6', 'x', '6', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '6', 'x', '5', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '5', 'x', '5', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '5', 'x', '4', 0,
    'R', 'G', 'B', 'A', '_', 'A', 'S', 'T', 'C', '_', '4', 'x', '4', 0,
    'R', '1', '1', '_', 'E', 'A', 'C', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', '1', '1', '_', 'E', 'A', 'C', '_', 'U', 'N', 'o', 'r', 'm', 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,
    'a', 'u', 't', 'o', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    's', 'e', 't', 'S', 'c', 'a', 'l', 'e', 'd', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'P', 'i', 'x', 'e', 'l', 'C', 'o', 'l', 'o', 'r', 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', '_', 'A', 'l', 'p', 'h', 'a', '8', 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,
    'f', 'r', 'o', 'm', 'N', 'u', 'm', 'e', 'r', 'i', 'c', 'I', 'd', 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,
    'c', 'l', 'e', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 's', 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,
    's', 'e', 'r', 'i', 'a', 'l', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'm', 'a', 'n', 'u', 'f', 'a', 'c', 't', 'u', 'r', '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,
    'C', 'o', 'm', 'p', 'a', 'r', 'e', 'N', 'e', 'v', 'e', 'r', 0,
    'C', 'o', 'm', 'p', 'a', 'r', 'e', 'E', 'q', 'u', 'a', 'l', 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,
    '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,
    'n', 'a', 't', 'i', 'v', 'e', 'H', 'a', 'n', 'd', 'l', 'e', 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,
    's', 'm', 'o', 'o', 't', 'h', 'S', 'c', 'a', 'l', 'e', 'd', 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,
    's', 'c', 'a', 'l', 'e', 'd', 'P', 'i', 'x', 'm', 'a', 'p', 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,
    '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,
    '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,
    'C', 'o', 'm', 'p', 'a', 'r', 'e', 'N', 'o', 'n', 'e', 0,
    'C', 'o', 'm', 'p', 'a', 'r', 'e', 'L', 'e', 's', 's', 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,
    '_', '_', 'i', 'm', 'a', 't', 'm', 'u', 'l', '_', '_', 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,
    's', 'e', 't', 'F', 'o', 'r', 'm', 'a', 't', 's', 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,
    'f', 'r', 'o', 'm', 'A', 'r', 'g', 'b', '3', '2', 0,
    'u', 'n', 'i', 't', 's', 'P', 'e', 'r', 'E', 'm', 0,
    'f', 'a', 'm', 'i', 'l', 'y', 'N', 'a', 'm', 'e', 0,
    'c', 'o', 'n', 'j', 'u', 'g', 'a', 't', 'e', 'd', 0,
    'r', 'o', 't', 'a', 't', 'i', 'o', 'n', 'T', 'o', 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,
    '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,
    's', 'e', 't', 'O', 'p', 'a', 'c', 'i', 't', 'y', 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,
    'S', 'R', 'G', 'B', '8', '_', 'E', 'T', 'C', '2', 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,
    '_', '_', 'm', 'a', 't', 'm', 'u', 'l', '_', '_', 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,
    'p', 'i', 'x', 'e', 'l', 'C', 'o', 'l', 'o', 'r', 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,
    'I', 's', 'N', 'u', 'l', 'l', 'H', 'o', 'o', 'k', 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,
    'A', 'n', 'y', 'S', 't', 'r', 'e', 't', 'c', 'h', 0,
    'E', 'x', 't', 'r', 'a', 'L', 'i', 'g', 'h', 't', 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,
    'f', 'r', 'o', 'm', 'R', 'g', 'b', 'a', '6', '4', 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,
    'e', 'x', 'a', 'c', 't', 'M', 'a', 't', 'c', 'h', 0,
    't', 'r', 'a', 'n', 's', 'p', 'o', 's', 'e', 'd', 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,
    'u', 'n', 'p', 'r', 'o', 'j', 'e', 'c', 't', 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,
    't', 'o', 'R', 'a', 'w', 'T', 'e', 'x', 't', 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', '8', '_', 'E', 'T', 'C', '1', 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,
    'B', 'a', 'c', 'k', 's', 'p', 'a', 'c', '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,
    's', 'e', 't', 'I', 's', 'M', 'a', 's', 'k', 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,
    'c', 'a', 'p', 'H', 'e', 'i', 'g', 'h', 't', 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,
    'E', 'x', 't', 'r', 'a', 'B', 'o', 'l', 'd', 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,
    'n', 'u', 'm', 'e', 'r', 'i', 'c', 'I', 'd', 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,
    's', 'e', 't', 'R', 'g', 'b', 'a', '6', '4', 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,
    '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,
    '_', '_', 'l', 'o', 'n', 'g', '_', '_', 0,
    't', 'o', 'A', 'r', 'g', 'b', '3', '2', 0,
    's', 'e', 't', 'R', 'e', 'c', 't', 's', 0,
    'f', 'r', 'o', 'm', 'F', 'o', 'n', 't', 0,
    'Q', 'R', 'a', 'w', 'F', 'o', 'n', 't', 0,
    'f', 'r', 'o', 'm', 'A', 'x', 'e', 's', 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,
    't', 'e', 'x', 't', 'u', 'r', 'e', '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,
    'i', 's', 'A', 'f', 'f', 'i', 'n', 'e', 0,
    'v', 'i', 'e', 'w', 'p', 'o', 'r', 't', 0,
    'f', 'a', 'r', 'P', 'l', 'a', 'n', 'e', 0,
    'F', 'i', 'n', 'd', 'N', 'e', 'x', 't', 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,
    '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,
    '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,
    'i', 'n', 'v', 'e', 'r', 't', 'e', 'd', 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,
    'g', 'r', 'a', 'd', 'i', 'e', 'n', 't', 0,
    's', 'e', 't', 'C', 'o', 'l', 'o', 'r', 0,
    's', 'e', 't', 'S', 't', 'y', 'l', 'e', 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,
    'f', 'o', 'r', 'm', 'a', 't', 'A', '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,
    '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,
    '_', '_', 'i', 's', 'u', 'b', '_', '_', 0,
    't', 'o', 'S', 't', 'r', 'i', 'n', 'g', 0,
    's', 'e', 't', 'F', 'l', 'a', 'g', 's', 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,
    '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,
    '_', '_', 'h', 'a', 's', 'h', '_', '_', 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,
    'q', 'R', 'g', 'b', 'a', '6', '4', 0,
    't', 'o', 'R', 'g', 'b', '1', '6', 0,
    'Q', 'R', 'g', 'b', 'a', '6', '4', 0,
    'g', 'e', 't', 'A', 'x', 'e', 's', 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,
    '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,
    '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,
    'o', 'p', 'a', 'c', 'i', 't', 'y', 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,
    'i', 'm', 'a', 'g', 'e', 'A', 't', 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,
    'f', 'o', 'r', 'm', 'a', 't', 's', 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,
    '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,
    '_', '_', 's', 'u', 'b', '_', '_', 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,
    '_', '_', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'o', 'r', '_', '_', 0,
    '_', '_', 'a', 'n', 'd', '_', '_', 0,
    '_', '_', 'i', 'n', 't', '_', '_', 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,
    'q', 'A', 'l', 'p', 'h', 'a', 0,
    'q', 'G', 'r', 'e', 'e', 'n', 0,
    'a', 'l', 'p', 'h', 'a', '8', 0,
    'g', 'r', 'e', 'e', 'n', '8', 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,
    'C', 'a', 'n', 'c', 'e', 'l', 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', 's', 'M', 'a', 's', 'k', 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,
    'M', 'e', 'd', 'i', 'u', 'm', 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,
    'r', 'g', 'b', 'a', '6', '4', 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,
    'c', 'a', 'n', 'c', 'e', 'l', 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,
    '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,
    'c', 'e', 'n', 't', 'e', 'r', 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,
    '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,
    'q', 'G', 'r', 'a', 'y', 0,
    'q', 'R', 'g', 'b', 'a', 0,
    'q', 'B', 'l', 'u', 'e', 0,
    'b', 'l', 'u', 'e', '8', 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,
    'T', 'o', 'k', 'e', 'n', 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,
    'r', 'e', 'd', '8', 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', 'l', 'i', 't', 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,
    'T', 'h', 'i', 'n', 0,
    'h', 'r', 'e', 'f', 0,
    'R', 'u', 'b', 'y', 0,
    'P', 'u', 'c', 'k', 0,
    'p', 'o', 's', 'F', 0,
    'e', 'x', 'e', 'c', 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,
    'm', 'a', 's', 'k', 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,
    'c', 'o', 'p', 'y', 0,
    'l', 'i', 'n', 'k', 0,
    'n', 'e', 'x', 't', 0,
    's', 'p', 'e', 'c', 0,
    'm', 'o', 'd', 'e', 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,
    '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,
    'A', 'n', 'y', 0,
    't', 'i', 'p', 0,
    'h', 'u', 'e', 0,
    'c', 'a', 'p', 0,
    'a', 'd', 'd', 0,
    'u', 'r', 'l', 0,
    'N', 'k', 'o', 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 166 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_Size(l) + 1];
    Py_ssize_t i;

    for (i = 0; i < PyList_Size(l); ++i)
        arr[i] = SIPLong_AsLong(PyList_GetItem(l, i));

    arr[i] = 0;

    return arr;
}
#line 311 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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;

// Forward declarations not in any header files but are part of the API.
void qt_set_sequence_auto_mnemonic(bool enable);
#line 236 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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)
{
    Py_ssize_t nstr = PyList_Size(lst);
    const char **arr = new const char *[nstr + 1];

    for (Py_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 (Py_ssize_t i = 0; arr[i]; ++i)
        delete[] arr[i];

    delete[] arr;
}
#line 24 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 228 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_SetItem(l, i, value);
    }

    *list = l;

    return sipErrorNone;
}
#line 25 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixelformat.sip"
#include <qpixelformat.h>
#line 24 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qquaternion.sip"
#include <qquaternion.h>
#line 25 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrgba64.sip"
#include <qrgba64.h>
#line 24 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrgb.sip"
#include <qrgb.h>
#line 269 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 24 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 24 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 24 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 4272 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

void sipVH_QtGui_109(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, double a0,double a1,int a2)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "ddi", a0, a1, a2);
}

void sipVH_QtGui_108(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);
}

 ::QValidator::State sipVH_QtGui_107(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_106(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QTextBlock& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QTextBlock(a0), sipType_QTextBlock, NULL);
}

 ::QVariant sipVH_QtGui_105(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_104(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_103(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QString& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QString(a0), sipType_QString, NULL);
}

bool sipVH_QtGui_102(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_101(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QDataStream& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", &a0, sipType_QDataStream, NULL);
}

 ::QStandardItem* sipVH_QtGui_100(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_99(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QVariant& a0,int a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "Ni", new  ::QVariant(a0), sipType_QVariant, NULL, a1);
}

 ::QVariant sipVH_QtGui_98(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;
}

 ::QModelIndex sipVH_QtGui_97(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0,int a1,const  ::QModelIndex& a2)
{
     ::QModelIndex sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "iiN", a0, a1, new  ::QModelIndex(a2), sipType_QModelIndex, NULL);

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

    return sipRes;
}

int sipVH_QtGui_96(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0)
{
    int sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N", new  ::QModelIndex(a0), sipType_QModelIndex, NULL);

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

    return sipRes;
}

 ::QVariant sipVH_QtGui_95(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0,int a1)
{
     ::QVariant sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "Ni", new  ::QModelIndex(a0), sipType_QModelIndex, NULL, a1);

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

    return sipRes;
}

bool sipVH_QtGui_94(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0,const  ::QVariant& a1,int a2)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NNi", new  ::QModelIndex(a0), sipType_QModelIndex, NULL, new  ::QVariant(a1), sipType_QVariant, NULL, a2);

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

    return sipRes;
}

 ::QVariant sipVH_QtGui_93(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0, ::Qt::Orientation a1,int a2)
{
     ::QVariant sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "iFi", a0, a1, sipType_Qt_Orientation, a2);

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

    return sipRes;
}

bool sipVH_QtGui_92(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0, ::Qt::Orientation a1,const  ::QVariant& a2,int a3)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "iFNi", a0, a1, sipType_Qt_Orientation, new  ::QVariant(a2), sipType_QVariant, NULL, a3);

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

    return sipRes;
}

QMap<int, ::QVariant> sipVH_QtGui_91(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0)
{
    QMap<int, ::QVariant> sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N", new  ::QModelIndex(a0), sipType_QModelIndex, NULL);

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

    return sipRes;
}

bool sipVH_QtGui_90(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0,const QMap<int, ::QVariant>& a1)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NN", new  ::QModelIndex(a0), sipType_QModelIndex, NULL, new QMap<int, ::QVariant>(a1), sipType_QMap_1800_0100QVariant, NULL);

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

    return sipRes;
}

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

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

    return sipRes;
}

 ::QMimeData* sipVH_QtGui_88(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndexList& a0)
{
     ::QMimeData* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N", new  ::QModelIndexList(a0), sipType_QList_0100QModelIndex, NULL);

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

    return sipRes;
}

bool sipVH_QtGui_87(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0,int a1,const  ::QModelIndex& a2)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "iiN", a0, a1, new  ::QModelIndex(a2), sipType_QModelIndex, NULL);

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

    return sipRes;
}

void sipVH_QtGui_86(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QModelIndex(a0), sipType_QModelIndex, NULL);
}

bool sipVH_QtGui_85(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N", new  ::QModelIndex(a0), sipType_QModelIndex, NULL);

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

    return sipRes;
}

 ::Qt::ItemFlags sipVH_QtGui_84(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0)
{
     ::Qt::ItemFlags sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N", new  ::QModelIndex(a0), sipType_QModelIndex, NULL);

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

    return sipRes;
}

void sipVH_QtGui_83(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0, ::Qt::SortOrder a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "iF", a0, a1, sipType_Qt_SortOrder);
}

 ::QModelIndex sipVH_QtGui_82(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0)
{
     ::QModelIndex sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N", new  ::QModelIndex(a0), sipType_QModelIndex, NULL);

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

    return sipRes;
}

 ::QModelIndexList sipVH_QtGui_81(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0,int a1,const  ::QVariant& a2,int a3, ::Qt::MatchFlags a4)
{
     ::QModelIndexList sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NiNiN", new  ::QModelIndex(a0), sipType_QModelIndex, NULL, a1, new  ::QVariant(a2), sipType_QVariant, NULL, a3, new  ::Qt::MatchFlags(a4), sipType_Qt_MatchFlags, NULL);

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

    return sipRes;
}

 ::QSize sipVH_QtGui_80(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0)
{
     ::QSize sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N", new  ::QModelIndex(a0), sipType_QModelIndex, NULL);

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

    return sipRes;
}

 ::Qt::DropActions sipVH_QtGui_79(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
     ::Qt::DropActions sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

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

    return sipRes;
}

QHash<int, ::QByteArray> sipVH_QtGui_78(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QHash<int, ::QByteArray> sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

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

    return sipRes;
}

bool sipVH_QtGui_77(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QMimeData*a0, ::Qt::DropAction a1,int a2,int a3,const  ::QModelIndex& a4)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "DFiiN", const_cast< ::QMimeData *>(a0), sipType_QMimeData, NULL, a1, sipType_Qt_DropAction, a2, a3, new  ::QModelIndex(a4), sipType_QModelIndex, NULL);

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

    return sipRes;
}

bool sipVH_QtGui_76(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QModelIndex& a0,int a1,int a2,const  ::QModelIndex& a3,int a4)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NiiNi", new  ::QModelIndex(a0), sipType_QModelIndex, NULL, a1, a2, new  ::QModelIndex(a3), sipType_QModelIndex, NULL, a4);

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

    return sipRes;
}

void sipVH_QtGui_75(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const char*a0,uint a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "g", a0, (SIP_SSIZE_T)a1);
}

 ::QPaintEngine::Type sipVH_QtGui_74(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_73(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QRectF& a0,const  ::QImage& a1,const  ::QRectF& a2, ::Qt::ImageConversionFlags a3)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, 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);
}

void sipVH_QtGui_72(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QRectF& a0,const  ::QPixmap& a1,const  ::QPointF& a2)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "NNN", new  ::QRectF(a0), sipType_QRectF, NULL, new  ::QPixmap(a1), sipType_QPixmap, NULL, new  ::QPointF(a2), sipType_QPointF, NULL);
}

void sipVH_QtGui_71(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QPointF& a0,const  ::QTextItem& a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "ND", new  ::QPointF(a0), sipType_QPointF, NULL, const_cast< ::QTextItem *>(&a1), sipType_QTextItem, NULL);
}

void sipVH_QtGui_70(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QRectF& a0,const  ::QPixmap& a1,const  ::QRectF& a2)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "NNN", new  ::QRectF(a0), sipType_QRectF, NULL, new  ::QPixmap(a1), sipType_QPixmap, NULL, new  ::QRectF(a2), sipType_QRectF, NULL);
}

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

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

void sipVH_QtGui_67(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QPoint*a0,int a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "r", const_cast< ::QPoint *>(a0), (SIP_SSIZE_T)a1, sipType_QPoint);
}

void sipVH_QtGui_66(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QPointF*a0,int a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "r", const_cast< ::QPointF *>(a0), (SIP_SSIZE_T)a1, sipType_QPointF);
}

void sipVH_QtGui_65(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QPainterPath& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QPainterPath(a0), sipType_QPainterPath, NULL);
}

void sipVH_QtGui_64(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QRect& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QRect(a0), sipType_QRect, NULL);
}

void sipVH_QtGui_63(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QRectF& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QRectF(a0), sipType_QRectF, NULL);
}

void sipVH_QtGui_62(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QLineF*a0,int a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "r", const_cast< ::QLineF *>(a0), (SIP_SSIZE_T)a1, sipType_QLineF);
}

void sipVH_QtGui_61(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QLine*a0,int a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "r", const_cast< ::QLine *>(a0), (SIP_SSIZE_T)a1, sipType_QLine);
}

void sipVH_QtGui_60(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QRectF*a0,int a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "r", const_cast< ::QRectF *>(a0), (SIP_SSIZE_T)a1, sipType_QRectF);
}

void sipVH_QtGui_59(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QRect*a0,int a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "r", const_cast< ::QRect *>(a0), (SIP_SSIZE_T)a1, sipType_QRect);
}

void sipVH_QtGui_58(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QPaintEngineState& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", const_cast< ::QPaintEngineState *>(&a0), sipType_QPaintEngineState, NULL);
}

bool sipVH_QtGui_57(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_56(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QPagedPaintDevice::Margins& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QPagedPaintDevice::Margins(a0), sipType_QPagedPaintDevice_Margins, NULL);
}

void sipVH_QtGui_55(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QSizeF& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QSizeF(a0), sipType_QSizeF, NULL);
}

void sipVH_QtGui_54(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QPagedPaintDevice::PageSize a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "F", a0, sipType_QPagedPaintDevice_PageSize);
}

void sipVH_QtGui_53(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0,int a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "ii", a0, a1);
}

void sipVH_QtGui_52(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QPaintEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QPaintEvent, NULL);
}

void sipVH_QtGui_51(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QTabletEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QTabletEvent, NULL);
}

void sipVH_QtGui_50(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QTouchEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QTouchEvent, NULL);
}

void sipVH_QtGui_49(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QWheelEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QWheelEvent, NULL);
}

void sipVH_QtGui_48(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QMouseEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QMouseEvent, NULL);
}

void sipVH_QtGui_47(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QKeyEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QKeyEvent, NULL);
}

void sipVH_QtGui_46(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QHideEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QHideEvent, NULL);
}

void sipVH_QtGui_45(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QShowEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QShowEvent, NULL);
}

void sipVH_QtGui_44(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QFocusEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QFocusEvent, NULL);
}

void sipVH_QtGui_43(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QMoveEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QMoveEvent, NULL);
}

void sipVH_QtGui_42(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QResizeEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QResizeEvent, NULL);
}

void sipVH_QtGui_41(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QExposeEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QExposeEvent, NULL);
}

 ::QObject* sipVH_QtGui_40(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;
}

void sipVH_QtGui_39(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "");
}

 ::QSize sipVH_QtGui_38(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;
}

 ::QSurface::SurfaceType sipVH_QtGui_37(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;
}

 ::QSurfaceFormat sipVH_QtGui_36(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;
}

 ::QRect sipVH_QtGui_35(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_34(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "i", a0);

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

    return sipRes;
}

bool sipVH_QtGui_33(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_32(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QImageIOHandler::ImageOption a0,const  ::QVariant& a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "FN", a0, sipType_QImageIOHandler_ImageOption, new  ::QVariant(a1), sipType_QVariant, NULL);
}

 ::QVariant sipVH_QtGui_31(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_30(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_29(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;
}

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

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

    return sipRes;
}

QList< ::QSize> sipVH_QtGui_27(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_26(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_25(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;
}

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

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

    return sipRes;
}

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

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

 ::QPixmap sipVH_QtGui_21(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_20(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_19(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QPainter*a0,const  ::QRect& a1, ::QIcon::Mode a2, ::QIcon::State a3)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "DNFF", a0, sipType_QPainter, NULL, new  ::QRect(a1), sipType_QRect, NULL, a2, sipType_QIcon_Mode, a3, sipType_QIcon_State);
}

int sipVH_QtGui_18(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_17(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_16(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QPainter*a0,const  ::QRectF& a1, ::QTextDocument*a2,int a3,const  ::QTextFormat& a4)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "DNDiN", a0, sipType_QPainter, NULL, new  ::QRectF(a1), sipType_QRectF, NULL, a2, sipType_QTextDocument, NULL, a3, new  ::QTextFormat(a4), sipType_QTextFormat, NULL);
}

 ::QSizeF sipVH_QtGui_15(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_14(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QPainter*a0,const  ::QRectF& a1, ::QTextInlineObject a2,int a3,const  ::QTextFormat& a4)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, 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);
}

void sipVH_QtGui_13(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QTextInlineObject a0,int a1,const  ::QTextFormat& a2)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "NiN", new  ::QTextInlineObject(a0), sipType_QTextInlineObject, NULL, a1, new  ::QTextFormat(a2), sipType_QTextFormat, NULL);
}

void sipVH_QtGui_12(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0,int a1,int a2)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "iii", a0, a1, a2);
}

 ::QRectF sipVH_QtGui_11(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_10(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_9(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_8(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    int sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

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

    return sipRes;
}

int sipVH_QtGui_7(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_6(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QPainter*a0,const  ::QAbstractTextDocumentLayout::PaintContext& a1)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "DN", a0, sipType_QPainter, NULL, new  ::QAbstractTextDocumentLayout::PaintContext(a1), sipType_QAbstractTextDocumentLayout_PaintContext, NULL);
}

bool sipVH_QtGui_5(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QEvent*a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D", a0, sipType_QEvent, NULL);

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

    return sipRes;
}

bool sipVH_QtGui_4(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QObject*a0, ::QEvent*a1)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "DD", a0, sipType_QObject, NULL, a1, sipType_QEvent, NULL);

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

    return sipRes;
}

void sipVH_QtGui_3(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QTimerEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QTimerEvent, NULL);
}

void sipVH_QtGui_2(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QChildEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QChildEvent, NULL);
}

void sipVH_QtGui_1(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod,  ::QEvent*a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", a0, sipType_QEvent, NULL);
}

void sipVH_QtGui_0(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const  ::QMetaMethod& a0)
{
    sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "N", new  ::QMetaMethod(a0), sipType_QMetaMethod, 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(QRgba64) -> int\n"
    "qAlpha(int) -> int");

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

    {
         ::QRgba64* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QRgba64, &a0))
        {
             ::uint sipRes;

            sipRes = qAlpha(*a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
         ::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(QRgba64) -> int\n"
    "qBlue(int) -> int");

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

    {
         ::QRgba64* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QRgba64, &a0))
        {
             ::uint sipRes;

            sipRes = qBlue(*a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
         ::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(QRgba64) -> int\n"
    "qGreen(int) -> int");

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

    {
         ::QRgba64* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QRgba64, &a0))
        {
             ::uint sipRes;

            sipRes = qGreen(*a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
         ::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(QRgba64) -> int\n"
    "qRed(int) -> int");

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

    {
         ::QRgba64* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QRgba64, &a0))
        {
             ::uint sipRes;

            sipRes = qRed(*a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
         ::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_qUnpremultiply, "qUnpremultiply(QRgba64) -> QRgba64\n"
    "qUnpremultiply(int) -> int");

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

    {
         ::QRgba64* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QRgba64, &a0))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64(qUnpremultiply(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRgba64,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(QRgba64) -> QRgba64\n"
    "qPremultiply(int) -> int");

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

    {
         ::QRgba64* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QRgba64, &a0))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64(qPremultiply(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRgba64,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_qRgba64, "qRgba64(int, int, int, int) -> QRgba64\n"
    "qRgba64(int) -> QRgba64");

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

    {
         ::quint16 a0;
         ::quint16 a1;
         ::quint16 a2;
         ::quint16 a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "tttt", &a0, &a1, &a2, &a3))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64(qRgba64(a0,a1,a2,a3));

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

    {
         ::quint64 a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "o", &a0))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64(qRgba64(a0));

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

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

    return NULL;
}


PyDoc_STRVAR(doc_qPixelFormatAlpha, "qPixelFormatAlpha(int, typeInterpretation: QPixelFormat.TypeInterpretation = QPixelFormat.UnsignedInteger) -> QPixelFormat");

extern "C" {static PyObject *func_qPixelFormatAlpha(PyObject *,PyObject *, PyObject *);}
static PyObject *func_qPixelFormatAlpha(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(qPixelFormatAlpha(a0,a1));

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

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

    return NULL;
}


PyDoc_STRVAR(doc_qPixelFormatYuv, "qPixelFormatYuv(QPixelFormat.YUVLayout, alphaSize: int = 0, alphaUsage: QPixelFormat.AlphaUsage = QPixelFormat.IgnoresAlpha, alphaPosition: QPixelFormat.AlphaPosition = QPixelFormat.AtBeginning, premultiplied: QPixelFormat.AlphaPremultiplied = QPixelFormat.NotPremultiplied, typeInterpretation: QPixelFormat.TypeInterpretation = QPixelFormat.UnsignedByte, byteOrder: QPixelFormat.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, alphaSize: int = 0, alphaUsage: QPixelFormat.AlphaUsage = QPixelFormat.IgnoresAlpha, alphaPosition: QPixelFormat.AlphaPosition = QPixelFormat.AtBeginning, typeInterpretation: QPixelFormat.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, alphaSize: int = 0, alphaUsage: QPixelFormat.AlphaUsage = QPixelFormat.IgnoresAlpha, alphaPosition: QPixelFormat.AlphaPosition = QPixelFormat.AtBeginning, typeInterpretation: QPixelFormat.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, alphaSize: int = 0, alphaUsage: QPixelFormat.AlphaUsage = QPixelFormat.IgnoresAlpha, alphaPosition: QPixelFormat.AlphaPosition = QPixelFormat.AtBeginning, typeInterpretation: QPixelFormat.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, typeInterpretation: QPixelFormat.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, premultiplied: QPixelFormat.AlphaPremultiplied = QPixelFormat.NotPremultiplied, typeInterpretation: QPixelFormat.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;
}


PyDoc_STRVAR(doc_qt_set_sequence_auto_mnemonic, "qt_set_sequence_auto_mnemonic(bool)");

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

    {
        bool a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "b", &a0))
        {
            qt_set_sequence_auto_mnemonic(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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, {28, 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 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    case QEvent::TouchCancel:
        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
    
    #if QT_VERSION >= 0x050500
    case QEvent::PlatformSurface:
        sipType = sipType_QPlatformSurfaceEvent;
        break;
    #endif
    
    default:
        sipType = 0;
    }
#line 7058 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 7188 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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}, 0}, sipNameNr_Visibility, 375, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QWindow__AncestorMode, {0}, 0}, sipNameNr_AncestorMode, 375, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDoubleValidator__Notation, {0}, 0}, sipNameNr_Notation, 20, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QValidator__State, {0}, 0}, sipNameNr_State, 353, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTransform__TransformationType, {0}, 0}, sipNameNr_TransformationType, 351, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTouchDevice__CapabilityFlag, {0}, 0}, sipNameNr_CapabilityFlag, 343, slots_QTouchDevice_CapabilityFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTouchDevice__DeviceType, {0}, 0}, sipNameNr_DeviceType, 343, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextOption__TabType, {0}, 0}, sipNameNr_TabType, 333, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextOption__Flag, {0}, 0}, sipNameNr_Flag, 333, slots_QTextOption_Flag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextOption__WrapMode, {0}, 0}, sipNameNr_WrapMode, 333, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextLine__CursorPosition, {0}, 0}, sipNameNr_CursorPosition, 325, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextLine__Edge, {0}, 0}, sipNameNr_Edge, 325, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextLayout__CursorMode, {0}, 0}, sipNameNr_CursorMode, 320, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFrameFormat__BorderStyle, {0}, 0}, sipNameNr_BorderStyle, 312, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFrameFormat__Position, {0}, 0}, sipNameNr_Position, 312, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextListFormat__Style, {0}, 0}, sipNameNr_Style, 329, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextBlockFormat__LineHeightTypes, {0}, 0}, sipNameNr_LineHeightTypes, 283, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCharFormat__FontPropertiesInheritanceBehavior, {0}, 0}, sipNameNr_FontPropertiesInheritanceBehavior, 287, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCharFormat__UnderlineStyle, {0}, 0}, sipNameNr_UnderlineStyle, 287, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCharFormat__VerticalAlignment, {0}, 0}, sipNameNr_VerticalAlignment, 287, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFormat__Property, {0}, 0}, sipNameNr_Property, 303, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFormat__PageBreakFlag, {0}, 0}, sipNameNr_PageBreakFlag, 303, slots_QTextFormat_PageBreakFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFormat__ObjectTypes, {0}, 0}, sipNameNr_ObjectTypes, 303, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFormat__FormatType, {0}, 0}, sipNameNr_FormatType, 303, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextLength__Type, {0}, 0}, sipNameNr_Type, 323, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextDocument__Stacks, {0}, 0}, sipNameNr_Stacks, 295, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextDocument__ResourceType, {0}, 0}, sipNameNr_ResourceType, 295, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextDocument__FindFlag, {0}, 0}, sipNameNr_FindFlag, 295, slots_QTextDocument_FindFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextDocument__MetaInformation, {0}, 0}, sipNameNr_MetaInformation, 295, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCursor__SelectionType, {0}, 0}, sipNameNr_SelectionType, 291, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCursor__MoveOperation, {0}, 0}, sipNameNr_MoveOperation, 291, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCursor__MoveMode, {0}, 0}, sipNameNr_MoveMode, 291, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurfaceFormat__OpenGLContextProfile, {0}, 0}, sipNameNr_OpenGLContextProfile, 271, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurfaceFormat__RenderableType, {0}, 0}, sipNameNr_RenderableType, 271, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurfaceFormat__SwapBehavior, {0}, 0}, sipNameNr_SwapBehavior, 271, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurfaceFormat__FormatOption, {0}, 0}, sipNameNr_FormatOption, 271, slots_QSurfaceFormat_FormatOption},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurface__SurfaceType, {0}, 0}, sipNameNr_SurfaceType, 268, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurface__SurfaceClass, {0}, 0}, sipNameNr_SurfaceClass, 268, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QStaticText__PerformanceHint, {0}, 0}, sipNameNr_PerformanceHint, 264, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QStandardItem__ItemType, {0}, 0}, sipNameNr_ItemType, 261, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSessionManager__RestartHint, {0}, 0}, sipNameNr_RestartHint, 256, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QRegion__RegionType, {0}, 0}, sipNameNr_RegionType, 247, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QRawFont__LayoutFlag, {0}, 0}, sipNameNr_LayoutFlag, 242, slots_QRawFont_LayoutFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QRawFont__AntialiasingType, {0}, 0}, sipNameNr_AntialiasingType, 242, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__ByteOrder, {0}, 0}, sipNameNr_ByteOrder, 223, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__YUVLayout, {0}, 0}, sipNameNr_YUVLayout, 223, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__TypeInterpretation, {0}, 0}, sipNameNr_TypeInterpretation, 223, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__AlphaPremultiplied, {0}, 0}, sipNameNr_AlphaPremultiplied, 223, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__AlphaPosition, {0}, 0}, sipNameNr_AlphaPosition, 223, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__AlphaUsage, {0}, 0}, sipNameNr_AlphaUsage, 223, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__ColorModel, {0}, 0}, sipNameNr_ColorModel, 223, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPalette__ColorRole, {0}, 0}, sipNameNr_ColorRole, 216, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPalette__ColorGroup, {0}, 0}, sipNameNr_ColorGroup, 216, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPainterPath__ElementType, {0}, 0}, sipNameNr_ElementType, 210, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintEngine__Type, {0}, 0}, sipNameNr_Type, 194, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintEngine__PolygonDrawMode, {0}, 0}, sipNameNr_PolygonDrawMode, 194, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintEngine__DirtyFlag, {0}, 0}, sipNameNr_DirtyFlag, 194, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintEngine__PaintEngineFeature, {0}, 0}, sipNameNr_PaintEngineFeature, 194, slots_QPaintEngine_PaintEngineFeature},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextItem__RenderFlag, {0}, 0}, sipNameNr_RenderFlag, 317, slots_QTextItem_RenderFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintDevice__PaintDeviceMetric, {0}, 0}, sipNameNr_PaintDeviceMetric, 191, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPainter__PixmapFragmentHint, {0}, 0}, sipNameNr_PixmapFragmentHint, 203, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPainter__CompositionMode, {0}, 0}, sipNameNr_CompositionMode, 203, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPainter__RenderHint, {0}, 0}, sipNameNr_RenderHint, 203, slots_QPainter_RenderHint},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageSize__SizeMatchPolicy, {0}, 0}, sipNameNr_SizeMatchPolicy, 184, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageSize__Unit, {0}, 0}, sipNameNr_Unit, 184, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageSize__PageSizeId, {0}, 0}, sipNameNr_PageSizeId, 184, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageLayout__Mode, {0}, 0}, sipNameNr_Mode, 180, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageLayout__Orientation, {0}, 0}, sipNameNr_Orientation, 180, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageLayout__Unit, {0}, 0}, sipNameNr_Unit, 180, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPagedPaintDevice__PageSize, {0}, 0}, sipNameNr_PageSize, 188, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLWindow__UpdateBehavior, {0}, 0}, sipNameNr_UpdateBehavior, 178, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTextureBlitter__Origin, {0}, 0}, sipNameNr_Origin, 171, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__ComparisonMode, {0}, 0}, sipNameNr_ComparisonMode, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__ComparisonFunction, {0}, 0}, sipNameNr_ComparisonFunction, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__CoordinateDirection, {0}, 0}, sipNameNr_CoordinateDirection, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__WrapMode, {0}, 0}, sipNameNr_WrapMode, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__Filter, {0}, 0}, sipNameNr_Filter, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__DepthStencilMode, {0}, 0}, sipNameNr_DepthStencilMode, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__SwizzleValue, {0}, 0}, sipNameNr_SwizzleValue, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__SwizzleComponent, {0}, 0}, sipNameNr_SwizzleComponent, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__Feature, {0}, 0}, sipNameNr_Feature, 152, slots_QOpenGLTexture_Feature},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__PixelType, {0}, 0}, sipNameNr_PixelType, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__PixelFormat, {0}, 0}, sipNameNr_PixelFormat, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__CubeMapFace, {0}, 0}, sipNameNr_CubeMapFace, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__TextureFormat, {0}, 0}, sipNameNr_TextureFormat, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__TextureUnitReset, {0}, 0}, sipNameNr_TextureUnitReset, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__MipMapGeneration, {0}, 0}, sipNameNr_MipMapGeneration, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__BindingTarget, {0}, 0}, sipNameNr_BindingTarget, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__Target, {0}, 0}, sipNameNr_Target, 152, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLShader__ShaderTypeBit, {0}, 0}, sipNameNr_ShaderTypeBit, 148, slots_QOpenGLShader_ShaderTypeBit},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLFramebufferObject__FramebufferRestorePolicy, {0}, 0}, sipNameNr_FramebufferRestorePolicy, 142, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLFramebufferObject__Attachment, {0}, 0}, sipNameNr_Attachment, 142, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLDebugLogger__LoggingMode, {0}, 0}, sipNameNr_LoggingMode, 133, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLDebugMessage__Severity, {0}, 0}, sipNameNr_Severity, 135, slots_QOpenGLDebugMessage_Severity},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLDebugMessage__Type, {0}, 0}, sipNameNr_Type, 135, slots_QOpenGLDebugMessage_Type},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLDebugMessage__Source, {0}, 0}, sipNameNr_Source, 135, slots_QOpenGLDebugMessage_Source},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLContext__OpenGLModuleType, {0}, 0}, sipNameNr_OpenGLModuleType, 130, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLBuffer__RangeAccessFlag, {0}, 0}, sipNameNr_RangeAccessFlag, 124, slots_QOpenGLBuffer_RangeAccessFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLBuffer__Access, {0}, 0}, sipNameNr_Access, 124, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLBuffer__UsagePattern, {0}, 0}, sipNameNr_UsagePattern, 124, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLBuffer__Type, {0}, 0}, sipNameNr_Type, 124, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QMovie__CacheMode, {0}, 0}, sipNameNr_CacheMode, 119, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QMovie__MovieState, {0}, 0}, sipNameNr_MovieState, 119, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QKeySequence__StandardKey, {0}, 0}, sipNameNr_StandardKey, 85, slots_QKeySequence_StandardKey},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QKeySequence__SequenceMatch, {0}, 0}, sipNameNr_SequenceMatch, 85, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QKeySequence__SequenceFormat, {0}, 0}, sipNameNr_SequenceFormat, 85, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QInputMethod__Action, {0}, 0}, sipNameNr_Action, 77, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImageWriter__ImageWriterError, {0}, 0}, sipNameNr_ImageWriterError, 74, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImageReader__ImageReaderError, {0}, 0}, sipNameNr_ImageReaderError, 72, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImageIOHandler__Transformation, {0}, 0}, sipNameNr_Transformation, 68, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImageIOHandler__ImageOption, {0}, 0}, sipNameNr_ImageOption, 68, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImage__Format, {0}, 0}, sipNameNr_Format, 65, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImage__InvertMode, {0}, 0}, sipNameNr_InvertMode, 65, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QIconEngine__IconEngineHook, {0}, 0}, sipNameNr_IconEngineHook, 61, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QIcon__State, {0}, 0}, sipNameNr_State, 57, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QIcon__Mode, {0}, 0}, sipNameNr_Mode, 57, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QGlyphRun__GlyphRunFlag, {0}, 0}, sipNameNr_GlyphRunFlag, 46, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFontDatabase__SystemFont, {0}, 0}, sipNameNr_SystemFont, 40, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFontDatabase__WritingSystem, {0}, 0}, sipNameNr_WritingSystem, 40, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__HintingPreference, {0}, 0}, sipNameNr_HintingPreference, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__SpacingType, {0}, 0}, sipNameNr_SpacingType, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__Capitalization, {0}, 0}, sipNameNr_Capitalization, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__Stretch, {0}, 0}, sipNameNr_Stretch, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__Style, {0}, 0}, sipNameNr_Style, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__Weight, {0}, 0}, sipNameNr_Weight, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__StyleStrategy, {0}, 0}, sipNameNr_StyleStrategy, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__StyleHint, {0}, 0}, sipNameNr_StyleHint, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPlatformSurfaceEvent__SurfaceEventType, {0}, 0}, sipNameNr_SurfaceEventType, 234, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScrollEvent__ScrollState, {0}, 0}, sipNameNr_ScrollState, 253, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTouchEvent__TouchPoint__InfoFlag, {0}, 0}, sipNameNr_InfoFlag, 348, slots_QTouchEvent_TouchPoint_InfoFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QInputMethodEvent__AttributeType, {0}, 0}, sipNameNr_AttributeType, 79, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QContextMenuEvent__Reason, {0}, 0}, sipNameNr_Reason, 16, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTabletEvent__PointerType, {0}, 0}, sipNameNr_PointerType, 278, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTabletEvent__TabletDevice, {0}, 0}, sipNameNr_TabletDevice, 278, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QClipboard__Mode, {0}, 0}, sipNameNr_Mode, 9, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QGradient__Spread, {0}, 0}, sipNameNr_Spread, 49, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QGradient__Type, {0}, 0}, sipNameNr_Type, 49, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QGradient__CoordinateMode, {0}, 0}, sipNameNr_CoordinateMode, 49, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QColor__NameFormat, {0}, 0}, sipNameNr_NameFormat, 12, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QColor__Spec, {0}, 0}, sipNameNr_Spec, 12, NULL},
};


/*
 * This defines each type in this module.
 */
sipTypeDef *sipExportedTypes_QtGui[] = {
    &sipTypeDef_QtGui_QAbstractOpenGLFunctions.ctd_base,
    &sipTypeDef_QtGui_QAbstractTextDocumentLayout.ctd_base,
    &sipTypeDef_QtGui_QAbstractTextDocumentLayout_PaintContext.ctd_base,
    &sipTypeDef_QtGui_QAbstractTextDocumentLayout_Selection.ctd_base,
    0,
    &sipTypeDef_QtGui_QActionEvent.ctd_base,
    &sipTypeDef_QtGui_QBackingStore.ctd_base,
    &sipTypeDef_QtGui_QBitmap.ctd_base,
    &sipTypeDef_QtGui_QBrush.ctd_base,
    &sipTypeDef_QtGui_QClipboard.ctd_base,
    &enumTypes[134].etd_base,
    &sipTypeDef_QtGui_QCloseEvent.ctd_base,
    &sipTypeDef_QtGui_QColor.ctd_base,
    &enumTypes[138].etd_base,
    &enumTypes[139].etd_base,
    &sipTypeDef_QtGui_QConicalGradient.ctd_base,
    &sipTypeDef_QtGui_QContextMenuEvent.ctd_base,
    &enumTypes[131].etd_base,
    &sipTypeDef_QtGui_QCursor.ctd_base,
    &sipTypeDef_QtGui_QDesktopServices.ctd_base,
    &sipTypeDef_QtGui_QDoubleValidator.ctd_base,
    &enumTypes[2].etd_base,
    &sipTypeDef_QtGui_QDrag.ctd_base,
    &sipTypeDef_QtGui_QDragEnterEvent.ctd_base,
    &sipTypeDef_QtGui_QDragLeaveEvent.ctd_base,
    &sipTypeDef_QtGui_QDragMoveEvent.ctd_base,
    &sipTypeDef_QtGui_QDropEvent.ctd_base,
    &sipTypeDef_QtGui_QEnterEvent.ctd_base,
    &sipTypeDef_QtGui_QExposeEvent.ctd_base,
    &sipTypeDef_QtGui_QFileOpenEvent.ctd_base,
    &sipTypeDef_QtGui_QFocusEvent.ctd_base,
    &sipTypeDef_QtGui_QFont.ctd_base,
    &enumTypes[121].etd_base,
    &enumTypes[119].etd_base,
    &enumTypes[120].etd_base,
    &enumTypes[122].etd_base,
    &enumTypes[123].etd_base,
    &enumTypes[126].etd_base,
    &enumTypes[125].etd_base,
    &enumTypes[124].etd_base,
    &sipTypeDef_QtGui_QFontDatabase.ctd_base,
    &enumTypes[117].etd_base,
    &enumTypes[118].etd_base,
    &sipTypeDef_QtGui_QFontInfo.ctd_base,
    &sipTypeDef_QtGui_QFontMetrics.ctd_base,
    &sipTypeDef_QtGui_QFontMetricsF.ctd_base,
    &sipTypeDef_QtGui_QGlyphRun.ctd_base,
    &enumTypes[116].etd_base,
    &sipTypeDef_QtGui_QGlyphRun_GlyphRunFlags.ctd_base,
    &sipTypeDef_QtGui_QGradient.ctd_base,
    &enumTypes[137].etd_base,
    &enumTypes[135].etd_base,
    &enumTypes[136].etd_base,
    &sipTypeDef_QtGui_QGuiApplication.ctd_base,
    &sipTypeDef_QtGui_QHelpEvent.ctd_base,
    &sipTypeDef_QtGui_QHideEvent.ctd_base,
    &sipTypeDef_QtGui_QHoverEvent.ctd_base,
    &sipTypeDef_QtGui_QIcon.ctd_base,
    &enumTypes[115].etd_base,
    &enumTypes[114].etd_base,
    &sipTypeDef_QtGui_QIconDragEvent.ctd_base,
    &sipTypeDef_QtGui_QIconEngine.ctd_base,
    &sipTypeDef_QtGui_QIconEngine_AvailableSizesArgument.ctd_base,
    &enumTypes[113].etd_base,
    &sipTypeDef_QtGui_QIconEngine_ScaledPixmapArgument.ctd_base,
    &sipTypeDef_QtGui_QImage.ctd_base,
    &enumTypes[111].etd_base,
    &enumTypes[112].etd_base,
    &sipTypeDef_QtGui_QImageIOHandler.ctd_base,
    &enumTypes[110].etd_base,
    &enumTypes[109].etd_base,
    &sipTypeDef_QtGui_QImageIOHandler_Transformations.ctd_base,
    &sipTypeDef_QtGui_QImageReader.ctd_base,
    &enumTypes[108].etd_base,
    &sipTypeDef_QtGui_QImageWriter.ctd_base,
    &enumTypes[107].etd_base,
    &sipTypeDef_QtGui_QInputEvent.ctd_base,
    &sipTypeDef_QtGui_QInputMethod.ctd_base,
    &enumTypes[106].etd_base,
    &sipTypeDef_QtGui_QInputMethodEvent.ctd_base,
    &sipTypeDef_QtGui_QInputMethodEvent_Attribute.ctd_base,
    &enumTypes[130].etd_base,
    &sipTypeDef_QtGui_QInputMethodQueryEvent.ctd_base,
    &sipTypeDef_QtGui_QIntValidator.ctd_base,
    &sipTypeDef_QtGui_QKeyEvent.ctd_base,
    &sipTypeDef_QtGui_QKeySequence.ctd_base,
    &enumTypes[105].etd_base,
    &enumTypes[104].etd_base,
    &enumTypes[103].etd_base,
    &sipTypeDef_QtGui_QLinearGradient.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.ctd_base,
    &sipTypeDef_QtGui_QMatrix2x3.ctd_base,
    &sipTypeDef_QtGui_QMatrix2x4.ctd_base,
    &sipTypeDef_QtGui_QMatrix3x2.ctd_base,
    &sipTypeDef_QtGui_QMatrix3x3.ctd_base,
    &sipTypeDef_QtGui_QMatrix3x4.ctd_base,
    &sipTypeDef_QtGui_QMatrix4x2.ctd_base,
    &sipTypeDef_QtGui_QMatrix4x3.ctd_base,
    &sipTypeDef_QtGui_QMatrix4x4.ctd_base,
    &sipTypeDef_QtGui_QMouseEvent.ctd_base,
    &sipTypeDef_QtGui_QMoveEvent.ctd_base,
    &sipTypeDef_QtGui_QMovie.ctd_base,
    &enumTypes[101].etd_base,
    &enumTypes[102].etd_base,
    &sipTypeDef_QtGui_QNativeGestureEvent.ctd_base,
    &sipTypeDef_QtGui_QOffscreenSurface.ctd_base,
    &sipTypeDef_QtGui_QOpenGLBuffer.ctd_base,
    &enumTypes[98].etd_base,
    &enumTypes[97].etd_base,
    &sipTypeDef_QtGui_QOpenGLBuffer_RangeAccessFlags.ctd_base,
    &enumTypes[100].etd_base,
    &enumTypes[99].etd_base,
    &sipTypeDef_QtGui_QOpenGLContext.ctd_base,
    &enumTypes[96].etd_base,
    &sipTypeDef_QtGui_QOpenGLContextGroup.ctd_base,
    &sipTypeDef_QtGui_QOpenGLDebugLogger.ctd_base,
    &enumTypes[92].etd_base,
    &sipTypeDef_QtGui_QOpenGLDebugMessage.ctd_base,
    &sipTypeDef_QtGui_QOpenGLDebugMessage_Severities.ctd_base,
    &enumTypes[93].etd_base,
    &enumTypes[95].etd_base,
    &sipTypeDef_QtGui_QOpenGLDebugMessage_Sources.ctd_base,
    &enumTypes[94].etd_base,
    &sipTypeDef_QtGui_QOpenGLDebugMessage_Types.ctd_base,
    &sipTypeDef_QtGui_QOpenGLFramebufferObject.ctd_base,
    &enumTypes[91].etd_base,
    &enumTypes[90].etd_base,
    &sipTypeDef_QtGui_QOpenGLFramebufferObjectFormat.ctd_base,
    &sipTypeDef_QtGui_QOpenGLPaintDevice.ctd_base,
    &sipTypeDef_QtGui_QOpenGLPixelTransferOptions.ctd_base,
    &sipTypeDef_QtGui_QOpenGLShader.ctd_base,
    &sipTypeDef_QtGui_QOpenGLShader_ShaderType.ctd_base,
    &enumTypes[89].etd_base,
    &sipTypeDef_QtGui_QOpenGLShaderProgram.ctd_base,
    &sipTypeDef_QtGui_QOpenGLTexture.ctd_base,
    &enumTypes[87].etd_base,
    &enumTypes[73].etd_base,
    &enumTypes[72].etd_base,
    &enumTypes[74].etd_base,
    &enumTypes[83].etd_base,
    &enumTypes[77].etd_base,
    &enumTypes[80].etd_base,
    &sipTypeDef_QtGui_QOpenGLTexture_Features.ctd_base,
    &enumTypes[76].etd_base,
    &enumTypes[86].etd_base,
    &enumTypes[82].etd_base,
    &enumTypes[81].etd_base,
    &enumTypes[79].etd_base,
    &enumTypes[78].etd_base,
    &enumTypes[88].etd_base,
    &enumTypes[84].etd_base,
    &enumTypes[85].etd_base,
    &enumTypes[75].etd_base,
    &sipTypeDef_QtGui_QOpenGLTextureBlitter.ctd_base,
    &enumTypes[71].etd_base,
    &sipTypeDef_QtGui_QOpenGLTimeMonitor.ctd_base,
    &sipTypeDef_QtGui_QOpenGLTimerQuery.ctd_base,
    &sipTypeDef_QtGui_QOpenGLVersionProfile.ctd_base,
    &sipTypeDef_QtGui_QOpenGLVertexArrayObject.ctd_base,
    &sipTypeDef_QtGui_QOpenGLVertexArrayObject_Binder.ctd_base,
    &sipTypeDef_QtGui_QOpenGLWindow.ctd_base,
    &enumTypes[70].etd_base,
    &sipTypeDef_QtGui_QPageLayout.ctd_base,
    &enumTypes[66].etd_base,
    &enumTypes[67].etd_base,
    &enumTypes[68].etd_base,
    &sipTypeDef_QtGui_QPageSize.ctd_base,
    &enumTypes[65].etd_base,
    &enumTypes[63].etd_base,
    &enumTypes[64].etd_base,
    &sipTypeDef_QtGui_QPagedPaintDevice.ctd_base,
    &sipTypeDef_QtGui_QPagedPaintDevice_Margins.ctd_base,
    &enumTypes[69].etd_base,
    &sipTypeDef_QtGui_QPaintDevice.ctd_base,
    &enumTypes[59].etd_base,
    &sipTypeDef_QtGui_QPaintDeviceWindow.ctd_base,
    &sipTypeDef_QtGui_QPaintEngine.ctd_base,
    &enumTypes[56].etd_base,
    &sipTypeDef_QtGui_QPaintEngine_DirtyFlags.ctd_base,
    &enumTypes[57].etd_base,
    &sipTypeDef_QtGui_QPaintEngine_PaintEngineFeatures.ctd_base,
    &enumTypes[55].etd_base,
    &enumTypes[54].etd_base,
    &sipTypeDef_QtGui_QPaintEngineState.ctd_base,
    &sipTypeDef_QtGui_QPaintEvent.ctd_base,
    &sipTypeDef_QtGui_QPainter.ctd_base,
    &enumTypes[61].etd_base,
    &sipTypeDef_QtGui_QPainter_PixmapFragment.ctd_base,
    &enumTypes[60].etd_base,
    &sipTypeDef_QtGui_QPainter_PixmapFragmentHints.ctd_base,
    &enumTypes[62].etd_base,
    &sipTypeDef_QtGui_QPainter_RenderHints.ctd_base,
    &sipTypeDef_QtGui_QPainterPath.ctd_base,
    &sipTypeDef_QtGui_QPainterPath_Element.ctd_base,
    &enumTypes[53].etd_base,
    &sipTypeDef_QtGui_QPainterPathStroker.ctd_base,
    &sipTypeDef_QtGui_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter.mtd_base,
    &sipTypeDef_QtGui_QPair_2200_2200.mtd_base,
    &sipTypeDef_QtGui_QPalette.ctd_base,
    &enumTypes[52].etd_base,
    &enumTypes[51].etd_base,
    &sipTypeDef_QtGui_QPdfWriter.ctd_base,
    &sipTypeDef_QtGui_QPen.ctd_base,
    &sipTypeDef_QtGui_QPicture.ctd_base,
    &sipTypeDef_QtGui_QPictureIO.ctd_base,
    &sipTypeDef_QtGui_QPixelFormat.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.ctd_base,
    &sipTypeDef_QtGui_QPixmapCache.ctd_base,
    &sipTypeDef_QtGui_QPixmapCache_Key.ctd_base,
    &sipTypeDef_QtGui_QPlatformSurfaceEvent.ctd_base,
    &enumTypes[127].etd_base,
    &sipTypeDef_QtGui_QPointingDeviceUniqueId.ctd_base,
    &sipTypeDef_QtGui_QPolygon.ctd_base,
    &sipTypeDef_QtGui_QPolygonF.ctd_base,
    &sipTypeDef_QtGui_QQuaternion.ctd_base,
    &sipTypeDef_QtGui_QRadialGradient.ctd_base,
    &sipTypeDef_QtGui_QRasterWindow.ctd_base,
    &sipTypeDef_QtGui_QRawFont.ctd_base,
    &enumTypes[43].etd_base,
    &enumTypes[42].etd_base,
    &sipTypeDef_QtGui_QRawFont_LayoutFlags.ctd_base,
    &sipTypeDef_QtGui_QRegExpValidator.ctd_base,
    &sipTypeDef_QtGui_QRegion.ctd_base,
    &enumTypes[41].etd_base,
    &sipTypeDef_QtGui_QRegularExpressionValidator.ctd_base,
    &sipTypeDef_QtGui_QResizeEvent.ctd_base,
    &sipTypeDef_QtGui_QRgba64.ctd_base,
    &sipTypeDef_QtGui_QScreen.ctd_base,
    &sipTypeDef_QtGui_QScrollEvent.ctd_base,
    &enumTypes[128].etd_base,
    &sipTypeDef_QtGui_QScrollPrepareEvent.ctd_base,
    &sipTypeDef_QtGui_QSessionManager.ctd_base,
    &enumTypes[40].etd_base,
    &sipTypeDef_QtGui_QSet_0100QByteArray.mtd_base,
    &sipTypeDef_QtGui_QShortcutEvent.ctd_base,
    &sipTypeDef_QtGui_QShowEvent.ctd_base,
    &sipTypeDef_QtGui_QStandardItem.ctd_base,
    &enumTypes[39].etd_base,
    &sipTypeDef_QtGui_QStandardItemModel.ctd_base,
    &sipTypeDef_QtGui_QStaticText.ctd_base,
    &enumTypes[38].etd_base,
    &sipTypeDef_QtGui_QStatusTipEvent.ctd_base,
    &sipTypeDef_QtGui_QStyleHints.ctd_base,
    &sipTypeDef_QtGui_QSurface.ctd_base,
    &enumTypes[37].etd_base,
    &enumTypes[36].etd_base,
    &sipTypeDef_QtGui_QSurfaceFormat.ctd_base,
    &enumTypes[35].etd_base,
    &sipTypeDef_QtGui_QSurfaceFormat_FormatOptions.ctd_base,
    &enumTypes[32].etd_base,
    &enumTypes[33].etd_base,
    &enumTypes[34].etd_base,
    &sipTypeDef_QtGui_QSyntaxHighlighter.ctd_base,
    &sipTypeDef_QtGui_QTabletEvent.ctd_base,
    &enumTypes[132].etd_base,
    &enumTypes[133].etd_base,
    &sipTypeDef_QtGui_QTextBlock.ctd_base,
    &sipTypeDef_QtGui_QTextBlock_iterator.ctd_base,
    &sipTypeDef_QtGui_QTextBlockFormat.ctd_base,
    &enumTypes[16].etd_base,
    &sipTypeDef_QtGui_QTextBlockGroup.ctd_base,
    &sipTypeDef_QtGui_QTextBlockUserData.ctd_base,
    &sipTypeDef_QtGui_QTextCharFormat.ctd_base,
    &enumTypes[17].etd_base,
    &enumTypes[18].etd_base,
    &enumTypes[19].etd_base,
    &sipTypeDef_QtGui_QTextCursor.ctd_base,
    &enumTypes[31].etd_base,
    &enumTypes[30].etd_base,
    &enumTypes[29].etd_base,
    &sipTypeDef_QtGui_QTextDocument.ctd_base,
    &enumTypes[27].etd_base,
    &sipTypeDef_QtGui_QTextDocument_FindFlags.ctd_base,
    &enumTypes[28].etd_base,
    &enumTypes[26].etd_base,
    &enumTypes[25].etd_base,
    &sipTypeDef_QtGui_QTextDocumentFragment.ctd_base,
    &sipTypeDef_QtGui_QTextDocumentWriter.ctd_base,
    &sipTypeDef_QtGui_QTextFormat.ctd_base,
    &enumTypes[23].etd_base,
    &enumTypes[22].etd_base,
    &enumTypes[21].etd_base,
    &sipTypeDef_QtGui_QTextFormat_PageBreakFlags.ctd_base,
    &enumTypes[20].etd_base,
    &sipTypeDef_QtGui_QTextFragment.ctd_base,
    &sipTypeDef_QtGui_QTextFrame.ctd_base,
    &sipTypeDef_QtGui_QTextFrame_iterator.ctd_base,
    &sipTypeDef_QtGui_QTextFrameFormat.ctd_base,
    &enumTypes[13].etd_base,
    &enumTypes[14].etd_base,
    &sipTypeDef_QtGui_QTextImageFormat.ctd_base,
    &sipTypeDef_QtGui_QTextInlineObject.ctd_base,
    &sipTypeDef_QtGui_QTextItem.ctd_base,
    &enumTypes[58].etd_base,
    &sipTypeDef_QtGui_QTextItem_RenderFlags.ctd_base,
    &sipTypeDef_QtGui_QTextLayout.ctd_base,
    &enumTypes[12].etd_base,
    &sipTypeDef_QtGui_QTextLayout_FormatRange.ctd_base,
    &sipTypeDef_QtGui_QTextLength.ctd_base,
    &enumTypes[24].etd_base,
    &sipTypeDef_QtGui_QTextLine.ctd_base,
    &enumTypes[10].etd_base,
    &enumTypes[11].etd_base,
    &sipTypeDef_QtGui_QTextList.ctd_base,
    &sipTypeDef_QtGui_QTextListFormat.ctd_base,
    &enumTypes[15].etd_base,
    &sipTypeDef_QtGui_QTextObject.ctd_base,
    &sipTypeDef_QtGui_QTextObjectInterface.ctd_base,
    &sipTypeDef_QtGui_QTextOption.ctd_base,
    &enumTypes[8].etd_base,
    &sipTypeDef_QtGui_QTextOption_Flags.ctd_base,
    &sipTypeDef_QtGui_QTextOption_Tab.ctd_base,
    &enumTypes[7].etd_base,
    &enumTypes[9].etd_base,
    &sipTypeDef_QtGui_QTextTable.ctd_base,
    &sipTypeDef_QtGui_QTextTableCell.ctd_base,
    &sipTypeDef_QtGui_QTextTableCellFormat.ctd_base,
    &sipTypeDef_QtGui_QTextTableFormat.ctd_base,
    &sipTypeDef_QtGui_QTouchDevice.ctd_base,
    &sipTypeDef_QtGui_QTouchDevice_Capabilities.ctd_base,
    &enumTypes[5].etd_base,
    &enumTypes[6].etd_base,
    &sipTypeDef_QtGui_QTouchEvent.ctd_base,
    &sipTypeDef_QtGui_QTouchEvent_TouchPoint.ctd_base,
    &enumTypes[129].etd_base,
    &sipTypeDef_QtGui_QTouchEvent_TouchPoint_InfoFlags.ctd_base,
    &sipTypeDef_QtGui_QTransform.ctd_base,
    &enumTypes[4].etd_base,
    &sipTypeDef_QtGui_QValidator.ctd_base,
    &enumTypes[3].etd_base,
    &sipTypeDef_QtGui_QVector2D.ctd_base,
    &sipTypeDef_QtGui_QVector3D.ctd_base,
    &sipTypeDef_QtGui_QVector4D.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_0100QSize.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.ctd_base,
    &sipTypeDef_QtGui_QWheelEvent.ctd_base,
    &sipTypeDef_QtGui_QWindow.ctd_base,
    &enumTypes[1].etd_base,
    &enumTypes[0].etd_base,
    &sipTypeDef_QtGui_QWindowStateChangeEvent.ctd_base,
    &sipTypeDef_QtGui_Qt.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 types that this module needs to import from QtCore. */
sipImportedTypeDef sipImportedTypes_QtGui_QtCore[] = {
    {"QAbstractItemModel"},
    {"QByteArray"},
    {"QChar"},
    {"QChildEvent"},
    {"QCoreApplication"},
    {"QDataStream"},
    {"QEvent"},
    {"QEvent::Type"},
    {"QFile"},
    {"QHash<int,QByteArray>"},
    {"QIODevice"},
    {"QIODevice::OpenMode"},
    {"QLine"},
    {"QLineF"},
    {"QList<QByteArray>"},
    {"QList<QModelIndex>"},
    {"QList<int>"},
    {"QList<qreal>"},
    {"QLocale"},
    {"QMap<int,QVariant>"},
    {"QMargins"},
    {"QMarginsF"},
    {"QMetaMethod"},
    {"QMimeData"},
    {"QModelIndex"},
    {"QObject"},
    {"QPair<int,int>"},
    {"QPoint"},
    {"QPointF"},
    {"QRect"},
    {"QRectF"},
    {"QRegExp"},
    {"QRegularExpression"},
    {"QSize"},
    {"QSizeF"},
    {"QString"},
    {"QStringList"},
    {"QTextCodec"},
    {"QTimerEvent"},
    {"QUrl"},
    {"QVariant"},
    {"QVector<QPointF>"},
    {"Qt"},
    {"Qt::Alignment"},
    {"Qt::ApplicationState"},
    {"Qt::AspectRatioMode"},
    {"Qt::Axis"},
    {"Qt::BGMode"},
    {"Qt::BrushStyle"},
    {"Qt::CheckState"},
    {"Qt::ClipOperation"},
    {"Qt::CursorMoveStyle"},
    {"Qt::CursorShape"},
    {"Qt::DropAction"},
    {"Qt::DropActions"},
    {"Qt::FillRule"},
    {"Qt::FocusReason"},
    {"Qt::GlobalColor"},
    {"Qt::HitTestAccuracy"},
    {"Qt::ImageConversionFlags"},
    {"Qt::InputMethodQueries"},
    {"Qt::InputMethodQuery"},
    {"Qt::ItemFlags"},
    {"Qt::KeyboardModifiers"},
    {"Qt::LayoutDirection"},
    {"Qt::MaskMode"},
    {"Qt::MatchFlags"},
    {"Qt::MouseButton"},
    {"Qt::MouseButtons"},
    {"Qt::MouseEventFlags"},
    {"Qt::MouseEventSource"},
    {"Qt::NativeGestureType"},
    {"Qt::Orientation"},
    {"Qt::PenCapStyle"},
    {"Qt::PenJoinStyle"},
    {"Qt::PenStyle"},
    {"Qt::ScreenOrientation"},
    {"Qt::ScreenOrientations"},
    {"Qt::ScrollPhase"},
    {"Qt::SizeMode"},
    {"Qt::SortOrder"},
    {"Qt::TabFocusBehavior"},
    {"Qt::TextElideMode"},
    {"Qt::TextFormat"},
    {"Qt::TouchPointState"},
    {"Qt::TouchPointStates"},
    {"Qt::TransformationMode"},
    {"Qt::WhiteSpaceMode"},
    {"Qt::WindowFlags"},
    {"Qt::WindowModality"},
    {"Qt::WindowState"},
    {"Qt::WindowStates"},
    {"Qt::WindowType"},
    {"quintptr"},
    {NULL}
};


/*
 * This defines the virtual error handlers that this module needs to import
 * from QtCore.
 */
sipImportedVirtErrorHandlerDef sipImportedVirtErrorHandlers_QtGui_QtCore[] = {
    {"PyQt5"},
    {NULL}
};


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


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


/* This defines this module. */
sipExportedModuleDef sipModuleAPI_QtGui = {
    0,
    SIP_API_MINOR_NR,
    sipNameNr_PyQt5_QtGui,
    0,
    sipStrings_QtGui,
    importsTable,
    NULL,
    380,
    sipExportedTypes_QtGui,
    externalTypesTable,
    0,
    NULL,
    23,
    typedefsTable,
    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;

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_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_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_qRgba64), func_qRgba64, METH_VARARGS, SIP_MLDOC_CAST(doc_qRgba64)},
        {SIP_MLNAME_CAST(sipName_qPixelFormatAlpha), (PyCFunction)func_qPixelFormatAlpha, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_qPixelFormatAlpha)},
        {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)},
        {SIP_MLNAME_CAST(sipName_qt_set_sequence_auto_mnemonic), func_qt_set_sequence_auto_mnemonic, METH_VARARGS, SIP_MLDOC_CAST(doc_qt_set_sequence_auto_mnemonic)},
        {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 320 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qguiapplication.sip"
// Export our own helpers.
sipExportSymbol("qtgui_wrap_ancestors", (void *)qtgui_wrap_ancestors);
#line 345 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#if defined(SIP_FEATURE_PyQt_OpenGL)
qpyopengl_init();
#endif
#line 8686 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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);
    }
#line 325 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qguiapplication.sip"
// Imports from QtCore.
pyqt5_qtgui_from_argv_list = (pyqt5_qtgui_from_argv_list_t)sipImportSymbol("pyqt5_from_argv_list");
Q_ASSERT(pyqt5_qtgui_from_argv_list);

pyqt5_qtgui_update_argv_list = (pyqt5_qtgui_update_argv_list_t)sipImportSymbol("pyqt5_update_argv_list");
Q_ASSERT(pyqt5_qtgui_update_argv_list);
#line 8714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

    SIP_MODULE_RETURN(sipModule);
}

#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 8725 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 183 "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 (Py_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 %zd has type '%s' but 'const QTouchDevice' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 8832 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 152 "sip/QtCore/qpycore_qlist.sip"
    int gc_enabled = sipEnableGC(0);
    PyObject *l = PyList_New(sipCpp->size());

    if (l)
    {
        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);
                l = 0;

                break;
            }

            PyList_SetItem(l, i, tobj);
        }
    }

    sipEnableGC(gc_enabled);

    return l;
#line 8870 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0111QTouchDevice = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_10834,     /* QList<QTouchDevice*> */
        {0},
        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 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8902 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 8906 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 183 "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 (Py_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 %zd has type '%s' but 'QTextFrame' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 9013 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 152 "sip/QtCore/qpycore_qlist.sip"
    int gc_enabled = sipEnableGC(0);
    PyObject *l = PyList_New(sipCpp->size());

    if (l)
    {
        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);
                l = 0;

                break;
            }

            PyList_SetItem(l, i, tobj);
        }
    }

    sipEnableGC(gc_enabled);

    return l;
#line 9051 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QTextFrame = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_14053,     /* QList<QTextFrame*> */
        {0},
        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 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 9083 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 9087 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QTextBlock' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 9196 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 9229 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QTextBlock = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_16599,     /* QList<QTextBlock> */
        {0},
        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 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 9261 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 9265 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QGlyphRun' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 9374 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 9407 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QGlyphRun = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_19191,     /* QList<QGlyphRun> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 9439 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 9445 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 58 "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 (Py_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 %zd has type '%s' but 'QTextLayout::FormatRange' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 9554 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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_SetItem(l, i, tobj);
    }

    return l;
#line 9587 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QTextLayout_FormatRange = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_862,     /* QVector<QTextLayout::FormatRange> */
        {0},
        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 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 9619 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 9625 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QTextLayout::FormatRange' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 9734 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 9767 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QTextLayout_FormatRange = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1695,     /* QList<QTextLayout::FormatRange> */
        {0},
        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 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 9799 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 84 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 9805 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QTextOption::Tab' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 9914 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 9947 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QTextOption_Tab = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6933,     /* QList<QTextOption::Tab> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 9979 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 9983 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 58 "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 (Py_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 %zd has type '%s' but 'QTextLength' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 10092 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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_SetItem(l, i, tobj);
    }

    return l;
#line 10125 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QTextLength = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_10855,     /* QVector<QTextLength> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 10157 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 10161 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 58 "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 (Py_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 %zd has type '%s' but 'QTextFormat' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 10270 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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_SetItem(l, i, tobj);
    }

    return l;
#line 10303 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QTextFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_10876,     /* QVector<QTextFormat> */
        {0},
        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 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 10335 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 10339 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 183 "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 (Py_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 %zd has type '%s' but 'QStandardItem' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 10446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 152 "sip/QtCore/qpycore_qlist.sip"
    int gc_enabled = sipEnableGC(0);
    PyObject *l = PyList_New(sipCpp->size());

    if (l)
    {
        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);
                l = 0;

                break;
            }

            PyList_SetItem(l, i, tobj);
        }
    }

    sipEnableGC(gc_enabled);

    return l;
#line 10484 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QStandardItem = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_9140,     /* QList<QStandardItem*> */
        {0},
        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 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 10516 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 326 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 10520 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QPolygonF' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 10629 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 10662 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QPolygonF = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_19208,     /* QList<QPolygonF> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 10694 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 10698 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 58 "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 (Py_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 %zd has type '%s' but 'QRect' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 10807 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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_SetItem(l, i, tobj);
    }

    return l;
#line 10840 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QRect = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_24563,     /* QVector<QRect> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 10872 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 10876 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 58 "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 (Py_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 %zd has type '%s' but 'QRectF' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 10985 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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_SetItem(l, i, tobj);
    }

    return l;
#line 11018 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QRectF = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_21571,     /* QVector<QRectF> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 11050 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 11054 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 58 "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 (Py_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 %zd has type '%s' but 'QPoint' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 11163 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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_SetItem(l, i, tobj);
    }

    return l;
#line 11196 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QPoint = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_21587,     /* QVector<QPoint> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 11228 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qline.sip"
#include <qline.h>
#line 11232 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 58 "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 (Py_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 %zd has type '%s' but 'QLine' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 11341 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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_SetItem(l, i, tobj);
    }

    return l;
#line 11374 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QLine = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_24578,     /* QVector<QLine> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 11406 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qline.sip"
#include <qline.h>
#line 11410 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 58 "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 (Py_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 %zd has type '%s' but 'QLineF' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 11519 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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_SetItem(l, i, tobj);
    }

    return l;
#line 11552 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QLineF = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_21603,     /* QVector<QLineF> */
        {0},
        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 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 11584 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 11588 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 183 "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 (Py_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 %zd has type '%s' but 'QOpenGLShader' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 11695 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 152 "sip/QtCore/qpycore_qlist.sip"
    int gc_enabled = sipEnableGC(0);
    PyObject *l = PyList_New(sipCpp->size());

    if (l)
    {
        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);
                l = 0;

                break;
            }

            PyList_SetItem(l, i, tobj);
        }
    }

    sipEnableGC(gc_enabled);

    return l;
#line 11733 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QOpenGLShader = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_9162,     /* QList<QOpenGLShader*> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 11765 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 11769 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


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


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


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


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



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

#line 58 "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<QSize> *qv = new QVector<QSize>;
 
    for (Py_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;
        QSize *t = reinterpret_cast<QSize *>(
                sipForceConvertToType(itm, sipType_QSize, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index %zd has type '%s' but 'QSize' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

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

            return 0;
        }

        qv->append(*t);

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

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


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

#line 32 "sip/QtCore/qpycore_qvector.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_SetItem(l, i, tobj);
    }

    return l;
#line 11911 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QSize = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_24593,     /* QVector<QSize> */
        {0},
        0
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QSize,
    array_QVector_0100QSize,
    copy_QVector_0100QSize,
    release_QVector_0100QSize,
    convertTo_QVector_0100QSize,
    convertFrom_QVector_0100QSize
};

#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 11943 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 11947 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QOpenGLDebugMessage' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 12056 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 12089 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QOpenGLDebugMessage = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_4528,     /* QList<QOpenGLDebugMessage> */
        {0},
        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 28 "sip/QtCore/qpycore_qset.sip"
#include <qset.h>
#line 12121 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12125 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 63 "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 (Py_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 %zd has type '%s' but 'QByteArray' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 12234 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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 12272 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QSet_0100QByteArray = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_19225,     /* QSet<QByteArray> */
        {0},
        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 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12304 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 12308 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 183 "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 (Py_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 %zd has type '%s' but 'QOpenGLContext' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 12415 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 152 "sip/QtCore/qpycore_qlist.sip"
    int gc_enabled = sipEnableGC(0);
    PyObject *l = PyList_New(sipCpp->size());

    if (l)
    {
        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);
                l = 0;

                break;
            }

            PyList_SetItem(l, i, tobj);
        }
    }

    sipEnableGC(gc_enabled);

    return l;
#line 12453 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QOpenGLContext = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_8013,     /* QList<QOpenGLContext*> */
        {0},
        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 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12485 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 12489 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QKeySequence' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 12598 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 12631 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QKeySequence = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_12493,     /* QList<QKeySequence> */
        {0},
        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 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12663 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 12667 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 183 "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 (Py_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 %zd has type '%s' but 'QScreen' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 12774 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 152 "sip/QtCore/qpycore_qlist.sip"
    int gc_enabled = sipEnableGC(0);
    PyObject *l = PyList_New(sipCpp->size());

    if (l)
    {
        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);
                l = 0;

                break;
            }

            PyList_SetItem(l, i, tobj);
        }
    }

    sipEnableGC(gc_enabled);

    return l;
#line 12812 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QScreen = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_21619,     /* QList<QScreen*> */
        {0},
        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 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12844 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12850 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QTouchEvent::TouchPoint' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 12959 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 12992 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QTouchEvent_TouchPoint = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2143,     /* QList<QTouchEvent::TouchPoint> */
        {0},
        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 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 13024 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 513 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 13030 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QInputMethodEvent::Attribute' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 13139 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 13172 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QInputMethodEvent_Attribute = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_436,     /* QList<QInputMethodEvent::Attribute> */
        {0},
        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 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 13204 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 13208 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 68 "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 (Py_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 %zd has type '%s' but 'QSize' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 13317 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 42 "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_SetItem(l, i, tobj);
    }

    return l;
#line 13350 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QSize = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_30931,     /* QList<QSize> */
        {0},
        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 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 13382 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 13388 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 58 "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 (Py_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 %zd has type '%s' but 'QAbstractTextDocumentLayout::Selection' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 13497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "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_SetItem(l, i, tobj);
    }

    return l;
#line 13530 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QAbstractTextDocumentLayout_Selection = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_155,     /* QVector<QAbstractTextDocumentLayout::Selection> */
        {0},
        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 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 13562 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 13566 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 183 "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 (Py_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 %zd has type '%s' but 'QWindow' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 13673 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 152 "sip/QtCore/qpycore_qlist.sip"
    int gc_enabled = sipEnableGC(0);
    PyObject *l = PyList_New(sipCpp->size());

    if (l)
    {
        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);
                l = 0;

                break;
            }

            PyList_SetItem(l, i, tobj);
        }
    }

    sipEnableGC(gc_enabled);

    return l;
#line 13711 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QWindow = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_21635,     /* QList<QWindow*> */
        {0},
        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 138 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 13744 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 13748 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 170 "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 (Py_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;
        }

        Py_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 %zd has type '%s' but a 2 element non-string sequence is expected",
                        i, sipPyTypeName(Py_TYPE(seq)));
            else
                PyErr_Format(PyExc_TypeError,
                        "index %zd is a sequence of %zd 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_GetItem(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 %zd has type '%s' but 'float' is expected",
                    i, sipPyTypeName(Py_TYPE(itm1)));

            Py_DECREF(itm1);
            Py_DECREF(seq);
            delete qv;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        PyObject *itm2 = PySequence_GetItem(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 %zd has type '%s' but 'QColor' is expected",
                    i, sipPyTypeName(Py_TYPE(itm2)));

            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 13934 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 143 "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_SetItem(l, i, pobj);
    }

    return l;
#line 13968 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0600QPair_2400_0100QColor = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2639,     /* QVector<QPair<qreal,QColor> > */
        {0},
        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 347 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#include <qopengl.h>
#line 14001 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 377 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (Py_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 %zd has type '%s' but 'int' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 14109 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_SetItem(l, i, pobj);
    }

    return l;
#line 14141 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_3900 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_16617,     /* QVector<GLuint64> */
        {0},
        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 239 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 14173 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 266 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (Py_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 %zd has type '%s' but 'int' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 14281 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 243 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_SetItem(l, i, pobj);
    }

    return l;
#line 14311 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_2400 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_24608,     /* QVector<qreal> */
        {0},
        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 133 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 14343 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 160 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (Py_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 %zd has type '%s' but 'int' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 14451 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 137 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_SetItem(l, i, pobj);
    }

    return l;
#line 14481 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_2200 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_24623,     /* QVector<float> */
        {0},
        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 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 14513 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 56 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (Py_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 %zd has type '%s' but 'int' is expected", i,
                    sipPyTypeName(Py_TYPE(itm)));

            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 14621 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 31 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_SetItem(l, i, pobj);
    }

    return l;
#line 14653 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_1900 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_27473,     /* QVector<uint> */
        {0},
        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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qpair.sip"
#include <qpair.h>
#line 14685 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qpair.sip"
    if (!sipIsErr)
        return (PySequence_Check(sipPy)
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));

    Py_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 %zd elements but 2 elements are expected",
                    len);

        *sipIsErr = 1;

        return 0;
    }

    PyObject *firstobj = PySequence_GetItem(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",
                sipPyTypeName(Py_TYPE(firstobj)));

        *sipIsErr = 1;

        return 0;
    }

    PyObject *secondobj = PySequence_GetItem(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",
                sipPyTypeName(Py_TYPE(secondobj)));

        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 14803 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qpair.sip"
    return Py_BuildValue("(ff)", sipCpp->first, sipCpp->second);
#line 14814 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QPair_2200_2200 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_14072,     /* QPair<float,float> */
        {0},
        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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qpair.sip"
#include <QOpenGLTexture>
#line 14846 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 14850 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qpair.sip"
    if (!sipIsErr)
        return (PySequence_Check(sipPy)
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));

    Py_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 %zd elements but 2 elements are expected",
                    len);

        *sipIsErr = 1;

        return 0;
    }

    PyObject *firstobj = PySequence_GetItem(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",
                sipPyTypeName(Py_TYPE(firstobj)));

        *sipIsErr = 1;

        return 0;
    }

    PyObject *secondobj = PySequence_GetItem(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",
                sipPyTypeName(Py_TYPE(secondobj)));

        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 14963 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qpair.sip"
    return sipBuildResult(NULL, "(FF)", sipCpp->first,
            sipType_QOpenGLTexture_Filter, sipCpp->second,
            sipType_QOpenGLTexture_Filter);
#line 14976 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_0,     /* QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter> */
        {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 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qlist.sip"
#include <qfontdatabase.h>
#line 15008 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 15012 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 56 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qlist.sip"
    if (!sipIsErr)
        return (PySequence_Check(sipPy)
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));

    Py_ssize_t len = PySequence_Size(sipPy);

    if (len < 0)
        return 0;

    QList<QFontDatabase::WritingSystem> *ql = new QList<QFontDatabase::WritingSystem>;

    for (Py_ssize_t i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_GetItem(sipPy, i);

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

            return 0;
        }

        if (!sipCanConvertToEnum(itm, sipType_QFontDatabase_WritingSystem))
        {
            PyErr_Format(PyExc_TypeError,
                    "element %zd has type '%s' but 'QFontDatabase.WritingSystem' is expected",
                    i, sipPyTypeName(Py_TYPE(itm)));

            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 15100 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_SetItem(l, i, eobj);
    }

    return l;
#line 15131 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QFontDatabase_WritingSystem = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_472,     /* QList<QFontDatabase::WritingSystem> */
        {0},
        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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 15163 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 15167 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 15170 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 15173 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 15176 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 15179 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QVector4D_length, "length(self) -> 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, "lengthSquared(self) -> 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, "normalized(self) -> 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, "normalize(self)");

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, "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, "toVector2D(self) -> 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, "toVector2DAffine(self) -> 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, "toVector3D(self) -> 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, "toVector3DAffine(self) -> 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, "isNull(self) -> 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, "x(self) -> 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, "y(self) -> 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, "z(self) -> 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, "w(self) -> 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, "setX(self, 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, "setY(self, 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, "setZ(self, 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, "setW(self, 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, "toPoint(self) -> 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, "toPointF(self) -> 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___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___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);
        }
    }

    {
        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, 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___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;
        }
    }

    {
        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___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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 16252 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector4d.sip"
    sipRes = Py_BuildValue((char *)"dddd", (double)sipCpp->x(),
            (double)sipCpp->y(), (double)sipCpp->z(), (double)sipCpp->w());
#line 16279 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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___ne__, ne_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___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(Union[QPointF, QPoint])\n"
    "QVector4D(QVector2D)\n"
    "QVector4D(QVector2D, float, float)\n"
    "QVector4D(QVector3D)\n"
    "QVector4D(QVector3D, float)\n"
    "QVector4D(QVector4D)");


static pyqt5ClassPluginDef plugin_QVector4D = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QVector4D = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QVector4D,
        {0},
        &plugin_QVector4D
    },
    {
        sipNameNr_QVector4D,
        {0, 0, 1},
        20, methods_QVector4D,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QVector4D,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QVector4D,
    0,
    0
};

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 16543 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 16547 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 16550 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 16553 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 16556 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 16559 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 16562 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QVector3D_length, "length(self) -> 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, "lengthSquared(self) -> 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, "normalized(self) -> 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, "normalize(self)");

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, "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, "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, "normal(QVector3D, QVector3D) -> QVector3D\n"
    "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, "distanceToPlane(self, QVector3D, QVector3D) -> float\n"
    "distanceToPlane(self, 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, "distanceToLine(self, 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, "toVector2D(self) -> 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, "toVector4D(self) -> 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, "isNull(self) -> 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, "x(self) -> 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, "y(self) -> 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, "z(self) -> 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, "setX(self, 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, "setY(self, 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, "setZ(self, 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, "toPoint(self) -> 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, "toPointF(self) -> 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, "distanceToPoint(self, 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;
}


PyDoc_STRVAR(doc_QVector3D_project, "project(self, QMatrix4x4, QMatrix4x4, QRect) -> QVector3D");

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

    {
        const  ::QMatrix4x4* a0;
        const  ::QMatrix4x4* a1;
        const  ::QRect* a2;
        const  ::QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_QVector3D, &sipCpp, sipType_QMatrix4x4, &a0, sipType_QMatrix4x4, &a1, sipType_QRect, &a2))
        {
             ::QVector3D*sipRes;

            sipRes = new  ::QVector3D(sipCpp->project(*a0,*a1,*a2));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_project, doc_QVector3D_project);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_unproject, "unproject(self, QMatrix4x4, QMatrix4x4, QRect) -> QVector3D");

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

    {
        const  ::QMatrix4x4* a0;
        const  ::QMatrix4x4* a1;
        const  ::QRect* a2;
        const  ::QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_QVector3D, &sipCpp, sipType_QMatrix4x4, &a0, sipType_QMatrix4x4, &a1, sipType_QRect, &a2))
        {
             ::QVector3D*sipRes;

            sipRes = new  ::QVector3D(sipCpp->unproject(*a0,*a1,*a2));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_unproject, doc_QVector3D_unproject);

    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___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___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);
        }
    }

    {
        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, 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___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;
        }
    }

    {
        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___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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 17763 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector3d.sip"
    sipRes = Py_BuildValue((char *)"ddd", (double)sipCpp->x(), (double)sipCpp->y(),
            (double)sipCpp->z());
#line 17790 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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___ne__, ne_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___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_project), meth_QVector3D_project, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_project)},
    {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_unproject), meth_QVector3D_unproject, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_unproject)},
    {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(Union[QPointF, QPoint])\n"
    "QVector3D(QVector2D)\n"
    "QVector3D(QVector2D, float)\n"
    "QVector3D(QVector4D)\n"
    "QVector3D(QVector3D)");


static pyqt5ClassPluginDef plugin_QVector3D = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QVector3D = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QVector3D,
        {0},
        &plugin_QVector3D
    },
    {
        sipNameNr_QVector3D,
        {0, 0, 1},
        23, methods_QVector3D,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QVector3D,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QVector3D,
    0,
    0
};

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 18042 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 18046 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 18049 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 18052 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 18055 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QVector2D_length, "length(self) -> 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, "lengthSquared(self) -> 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, "normalized(self) -> 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, "normalize(self)");

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, "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, "toVector3D(self) -> 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, "toVector4D(self) -> 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, "isNull(self) -> 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, "x(self) -> 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, "y(self) -> 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, "setX(self, 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, "setY(self, 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, "toPoint(self) -> 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, "toPointF(self) -> 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, "distanceToPoint(self, 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, "distanceToLine(self, 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___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___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);
        }
    }

    {
        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, 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___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;
        }
    }

    {
        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___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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 18996 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector2d.sip"
    sipRes = Py_BuildValue((char *)"dd", (double)sipCpp->x(), (double)sipCpp->y());
#line 19022 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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___ne__, ne_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___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(Union[QPointF, QPoint])\n"
    "QVector2D(QVector3D)\n"
    "QVector2D(QVector4D)\n"
    "QVector2D(QVector2D)");


static pyqt5ClassPluginDef plugin_QVector2D = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QVector2D = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QVector2D,
        {0},
        &plugin_QVector2D
    },
    {
        sipNameNr_QVector2D,
        {0, 0, 1},
        16, methods_QVector2D,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QVector2D,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QVector2D,
    0,
    0
};

#line 129 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 19253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19257 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 19260 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 19263 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19266 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 19269 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 19272 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19275 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19278 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19281 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 19284 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 19287 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 19290 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 19293 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19296 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 19299 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19302 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 19305 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 19308 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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*);
     ::QValidator::State validate( ::QString&,int&) const;
    void fixup( ::QString&) 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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQRegularExpressionValidator::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QRegularExpressionValidator);

    return  ::QRegularExpressionValidator::metaObject();
}

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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[7]),sipPySelf,NULL,sipName_validate);

    if (!sipMeth)
        return  ::QRegularExpressionValidator::validate(a0,a1);

    extern  ::QValidator::State sipVH_QtGui_107(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&,int&);

    return sipVH_QtGui_107(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQRegularExpressionValidator::fixup( ::QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
         ::QRegularExpressionValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_108(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&);

    sipVH_QtGui_108(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 19643 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 19703 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "validate(self, str, int) -> Tuple[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 || sipIsDerivedClass((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, "regularExpression(self) -> 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, "setRegularExpression(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QRegularExpressionValidator(void *, const sipTypeDef *);}
static void *cast_QRegularExpressionValidator(void *sipCppV, const sipTypeDef *targetType)
{
     ::QRegularExpressionValidator *sipCpp = reinterpret_cast< ::QRegularExpressionValidator *>(sipCppV);

    if (targetType == sipType_QValidator)
        return static_cast< ::QValidator *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQRegularExpressionValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QRegularExpressionValidator(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{353, 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(parent: QObject = None)\n"
    "QRegularExpressionValidator(QRegularExpression, parent: QObject = None)");


static pyqt5ClassPluginDef plugin_QRegularExpressionValidator = {
    & ::QRegularExpressionValidator::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QRegularExpressionValidator = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRegularExpressionValidator,
        {0},
        &plugin_QRegularExpressionValidator
    },
    {
        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
};

#line 109 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 20188 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 20192 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 20195 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 20198 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 20201 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 20204 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 20207 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 20210 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 20213 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 20216 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 20219 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 20222 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 20225 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 20228 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 20231 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 20234 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 20237 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 20240 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 20243 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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*);
     ::QValidator::State validate( ::QString&,int&) const;
    void fixup( ::QString&) 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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQRegExpValidator::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QRegExpValidator);

    return  ::QRegExpValidator::metaObject();
}

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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[7]),sipPySelf,NULL,sipName_validate);

    if (!sipMeth)
        return  ::QRegExpValidator::validate(a0,a1);

    extern  ::QValidator::State sipVH_QtGui_107(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&,int&);

    return sipVH_QtGui_107(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQRegExpValidator::fixup( ::QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
         ::QRegExpValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_108(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&);

    sipVH_QtGui_108(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 20578 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 20638 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "validate(self, str, int) -> Tuple[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 || sipIsDerivedClass((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, "setRegExp(self, 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, "regExp(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QRegExpValidator(void *, const sipTypeDef *);}
static void *cast_QRegExpValidator(void *sipCppV, const sipTypeDef *targetType)
{
     ::QRegExpValidator *sipCpp = reinterpret_cast< ::QRegExpValidator *>(sipCppV);

    if (targetType == sipType_QValidator)
        return static_cast< ::QValidator *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQRegExpValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QRegExpValidator(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{353, 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(parent: QObject = None)\n"
    "QRegExpValidator(QRegExp, parent: QObject = None)");


static pyqt5ClassPluginDef plugin_QRegExpValidator = {
    & ::QRegExpValidator::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QRegExpValidator = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRegExpValidator,
        {0},
        &plugin_QRegExpValidator
    },
    {
        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
};

#line 77 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 21123 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 21127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 21130 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 21133 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 21136 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 21139 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 21142 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 21145 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 21148 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 21151 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 21154 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 21157 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 21160 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 21163 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 21166 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 21169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 21172 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 21175 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 21178 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 setRange(double,double,int);
    void disconnectNotify(const  ::QMetaMethod&);
    void connectNotify(const  ::QMetaMethod&);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
     ::QValidator::State validate( ::QString&,int&) const;
    void fixup( ::QString&) 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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQDoubleValidator::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QDoubleValidator);

    return  ::QDoubleValidator::metaObject();
}

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::setRange(double a0,double a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setRange);

    if (!sipMeth)
    {
         ::QDoubleValidator::setRange(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_109(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, double,double,int);

    sipVH_QtGui_109(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

void sipQDoubleValidator::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QDoubleValidator::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QDoubleValidator::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QDoubleValidator::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QDoubleValidator::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QDoubleValidator::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQDoubleValidator::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QDoubleValidator::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipQDoubleValidator::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QDoubleValidator::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QValidator::State sipQDoubleValidator::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  ::QDoubleValidator::validate(a0,a1);

    extern  ::QValidator::State sipVH_QtGui_107(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&,int&);

    return sipVH_QtGui_107(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQDoubleValidator::fixup( ::QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
         ::QDoubleValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_108(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&);

    sipVH_QtGui_108(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 21532 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 21592 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "validate(self, str, int) -> Tuple[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 || sipIsDerivedClass((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, "setRange(self, float, float, decimals: int = 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 || sipIsDerivedClass((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, "setBottom(self, 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, "setTop(self, 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, "setDecimals(self, 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, "bottom(self) -> 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, "top(self) -> 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, "decimals(self) -> 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, "setNotation(self, 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, "notation(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QDoubleValidator(void *, const sipTypeDef *);}
static void *cast_QDoubleValidator(void *sipCppV, const sipTypeDef *targetType)
{
     ::QDoubleValidator *sipCpp = reinterpret_cast< ::QDoubleValidator *>(sipCppV);

    if (targetType == sipType_QValidator)
        return static_cast< ::QValidator *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQDoubleValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QDoubleValidator(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{353, 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(parent: QObject = None)\n"
    "QDoubleValidator(float, float, int, parent: QObject = None)");


static pyqt5ClassPluginDef plugin_QDoubleValidator = {
    & ::QDoubleValidator::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QDoubleValidator = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QDoubleValidator,
        {0},
        &plugin_QDoubleValidator
    },
    {
        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
};

#line 55 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 22298 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 22302 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22305 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 22308 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 22311 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 22314 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 22317 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 22320 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 22323 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 22326 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 22329 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 22332 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 22335 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 22338 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 22341 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 22344 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 22347 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 22350 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 22353 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 setRange(int,int);
    void disconnectNotify(const  ::QMetaMethod&);
    void connectNotify(const  ::QMetaMethod&);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
     ::QValidator::State validate( ::QString&,int&) const;
    void fixup( ::QString&) 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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQIntValidator::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QIntValidator);

    return  ::QIntValidator::metaObject();
}

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::setRange(int a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setRange);

    if (!sipMeth)
    {
         ::QIntValidator::setRange(a0,a1);
        return;
    }

    extern void sipVH_QtGui_53(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);

    sipVH_QtGui_53(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQIntValidator::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QIntValidator::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQIntValidator::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QIntValidator::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQIntValidator::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QIntValidator::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQIntValidator::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QIntValidator::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQIntValidator::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QIntValidator::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQIntValidator::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QIntValidator::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipQIntValidator::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QIntValidator::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[8]),sipPySelf,NULL,sipName_validate);

    if (!sipMeth)
        return  ::QIntValidator::validate(a0,a1);

    extern  ::QValidator::State sipVH_QtGui_107(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&,int&);

    return sipVH_QtGui_107(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQIntValidator::fixup( ::QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
         ::QIntValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_108(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&);

    sipVH_QtGui_108(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 22707 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 22767 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "validate(self, str, int) -> Tuple[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 || sipIsDerivedClass((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, "fixup(self, 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 || sipIsDerivedClass((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, "setBottom(self, 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, "setTop(self, 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, "setRange(self, 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 || sipIsDerivedClass((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, "bottom(self) -> 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, "top(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QIntValidator(void *, const sipTypeDef *);}
static void *cast_QIntValidator(void *sipCppV, const sipTypeDef *targetType)
{
     ::QIntValidator *sipCpp = reinterpret_cast< ::QIntValidator *>(sipCppV);

    if (targetType == sipType_QValidator)
        return static_cast< ::QValidator *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQIntValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QIntValidator(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{353, 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(parent: QObject = None)\n"
    "QIntValidator(int, int, parent: QObject = None)");


static pyqt5ClassPluginDef plugin_QIntValidator = {
    & ::QIntValidator::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QIntValidator = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QIntValidator,
        {0},
        &plugin_QIntValidator
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 23378 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 23382 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 23385 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 23388 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 23391 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 23394 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 23397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 23400 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 23403 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 23406 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 23409 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 23412 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 23415 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 23418 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 23421 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 23424 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 23427 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 23430 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 fixup( ::QString&) const;
     ::QValidator::State validate( ::QString&,int&) const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQValidator::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QValidator);

    return  ::QValidator::metaObject();
}

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::fixup( ::QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
         ::QValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_108(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&);

    sipVH_QtGui_108(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[1]),sipPySelf,sipName_QValidator,sipName_validate);

    if (!sipMeth)
        return ( ::QValidator::State)0;

    extern  ::QValidator::State sipVH_QtGui_107(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QString&,int&);

    return sipVH_QtGui_107(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipQValidator::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QValidator::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQValidator::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QValidator::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

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;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQValidator::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QValidator::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQValidator::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QValidator::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQValidator::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QValidator::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQValidator::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QValidator::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 23759 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 23819 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "validate(self, str, int) -> Tuple[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, "fixup(self, 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 || sipIsDerivedClass((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, "setLocale(self, 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, "locale(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QValidator(void *, const sipTypeDef *);}
static void *cast_QValidator(void *sipCppV, const sipTypeDef *targetType)
{
     ::QValidator *sipCpp = reinterpret_cast< ::QValidator *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QValidator(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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), 354},
    {sipName_Intermediate, static_cast<int>( ::QValidator::Intermediate), 354},
    {sipName_Invalid, static_cast<int>( ::QValidator::Invalid), 354},
};

PyDoc_STRVAR(doc_QValidator, "\1QValidator(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QValidator[] = {
    {"changed()", "\1changed(self)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QValidator = {
    & ::QValidator::staticMetaObject,
    0,
    signals_QValidator,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QValidator = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QValidator,
        {0},
        &plugin_QValidator
    },
    {
        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
};

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 24335 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 24339 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 24342 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 24345 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 24348 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 24351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qline.sip"
#include <qline.h>
#line 24354 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qline.sip"
#include <qline.h>
#line 24357 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 326 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 24360 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 24363 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 24366 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 24369 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTransform_type, "type(self) -> 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, "setMatrix(self, 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, "inverted(self) -> Tuple[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, "adjoint(self) -> 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, "transposed(self) -> 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, "translate(self, 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, "scale(self, 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, "shear(self, 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, "rotate(self, float, axis: Qt.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, "rotateRadians(self, float, axis: Qt.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, "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, "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, "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, "reset(self)");

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, "map(self, int, int) -> Tuple[int, int]\n"
    "map(self, float, float) -> Tuple[float, float]\n"
    "map(self, QPoint) -> QPoint\n"
    "map(self, Union[QPointF, QPoint]) -> QPointF\n"
    "map(self, QLine) -> QLine\n"
    "map(self, QLineF) -> QLineF\n"
    "map(self, QPolygonF) -> QPolygonF\n"
    "map(self, QPolygon) -> QPolygon\n"
    "map(self, QRegion) -> QRegion\n"
    "map(self, 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, "mapToPolygon(self, 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, "mapRect(self, QRect) -> QRect\n"
    "mapRect(self, 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, "isAffine(self) -> 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, "isIdentity(self) -> 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, "isInvertible(self) -> 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, "isScaling(self) -> 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, "isRotating(self) -> 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, "isTranslating(self) -> 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, "determinant(self) -> 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, "m11(self) -> 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, "m12(self) -> 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, "m13(self) -> 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, "m21(self) -> 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, "m22(self) -> 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, "m23(self) -> 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, "m31(self) -> 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, "m32(self) -> 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, "m33(self) -> 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, "dx(self) -> 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, "dy(self) -> 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, "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, "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 long slot_QTransform___hash__(PyObject *);}
static long slot_QTransform___hash__(PyObject *sipSelf)
{
     ::QTransform *sipCpp = reinterpret_cast< ::QTransform *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTransform));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 112 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
        sipRes = qHash(*sipCpp);
#line 25709 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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___matmul__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___matmul__(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);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui, matmul_slot, NULL, sipArg0, sipArg1);
}


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___imatmul__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___imatmul__(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;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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);
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 26081 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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___hash__, hash_slot},
    {(void *)slot_QTransform___isub__, isub_slot},
    {(void *)slot_QTransform___iadd__, iadd_slot},
    {(void *)slot_QTransform___idiv__, idiv_slot},
    {(void *)slot_QTransform___matmul__, matmul_slot},
    {(void *)slot_QTransform___mul__, mul_slot},
    {(void *)slot_QTransform___imatmul__, imatmul_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), 352},
    {sipName_TxProject, static_cast<int>( ::QTransform::TxProject), 352},
    {sipName_TxRotate, static_cast<int>( ::QTransform::TxRotate), 352},
    {sipName_TxScale, static_cast<int>( ::QTransform::TxScale), 352},
    {sipName_TxShear, static_cast<int>( ::QTransform::TxShear), 352},
    {sipName_TxTranslate, static_cast<int>( ::QTransform::TxTranslate), 352},
};

PyDoc_STRVAR(doc_QTransform, "\1QTransform()\n"
    "QTransform(float, float, float, float, float, float, float, float, m33: float = 1)\n"
    "QTransform(float, float, float, float, float, float)\n"
    "QTransform(QTransform)");


static pyqt5ClassPluginDef plugin_QTransform = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTransform = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTransform,
        {0},
        &plugin_QTransform
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QTransform,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 26328 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 26332 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QTouchDevice_Capabilities___hash__(PyObject *);}
static long slot_QTouchDevice_Capabilities___hash__(PyObject *sipSelf)
{
     ::QTouchDevice::Capabilities *sipCpp = reinterpret_cast< ::QTouchDevice::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchDevice_Capabilities));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QTouchDevice::Capabilities::Int();
#line 26350 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchDevice::Capabilities::Int() != 0);
#line 26375 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchDevice::Capabilities::Int() != a0->operator QTouchDevice::Capabilities::Int());
#line 26405 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchDevice::Capabilities::Int() == a0->operator QTouchDevice::Capabilities::Int());
#line 26441 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QTouchDevice::Capabilities(*sipCpp ^ a0);
#line 26480 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTouchDevice_Capabilities___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QTouchDevice::Capabilities(*sipCpp | a0);
#line 26552 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTouchDevice_Capabilities___or__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QTouchDevice::Capabilities();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QTouchDevice::Capabilities(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 26820 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTouchDevice_Capabilities[] = {
    {(void *)slot_QTouchDevice_Capabilities___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QTouchDevice_Capabilities___xor__, xor_slot},
    {(void *)slot_QTouchDevice_Capabilities___ior__, ior_slot},
    {(void *)slot_QTouchDevice_Capabilities___or__, or_slot},
    {(void *)slot_QTouchDevice_Capabilities___iand__, iand_slot},
    {(void *)slot_QTouchDevice_Capabilities___and__, and_slot},
    {(void *)slot_QTouchDevice_Capabilities___invert__, invert_slot},
    {(void *)slot_QTouchDevice_Capabilities___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTouchDevice_Capabilities, "\1QTouchDevice.Capabilities()\n"
    "QTouchDevice.Capabilities(Union[QTouchDevice.Capabilities, QTouchDevice.CapabilityFlag])\n"
    "QTouchDevice.Capabilities(QTouchDevice.Capabilities)");


static pyqt5ClassPluginDef plugin_QTouchDevice_Capabilities = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTouchDevice_Capabilities = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTouchDevice__Capabilities,
        {0},
        &plugin_QTouchDevice_Capabilities
    },
    {
        sipNameNr_Capabilities,
        {343, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTouchDevice_Capabilities,
    -1,
    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,
    0,
    convertTo_QTouchDevice_Capabilities,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 26906 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 26910 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 26913 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 26916 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTouchDevice_devices, "devices() -> object");

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, "name(self) -> 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, "type(self) -> 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, "capabilities(self) -> 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, "setName(self, 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, "setType(self, 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, "setCapabilities(self, Union[QTouchDevice.Capabilities, QTouchDevice.CapabilityFlag])");

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, "maximumTouchPoints(self) -> 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, "setMaximumTouchPoints(self, 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;
}


/* 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 (sipIsOwnedByPython(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), 345},
    {sipName_MouseEmulation, static_cast<int>( ::QTouchDevice::MouseEmulation), 345},
    {sipName_NormalizedPosition, static_cast<int>( ::QTouchDevice::NormalizedPosition), 345},
    {sipName_Position, static_cast<int>( ::QTouchDevice::Position), 345},
    {sipName_Pressure, static_cast<int>( ::QTouchDevice::Pressure), 345},
    {sipName_RawPositions, static_cast<int>( ::QTouchDevice::RawPositions), 345},
    {sipName_TouchPad, static_cast<int>( ::QTouchDevice::TouchPad), 346},
    {sipName_TouchScreen, static_cast<int>( ::QTouchDevice::TouchScreen), 346},
    {sipName_Velocity, static_cast<int>( ::QTouchDevice::Velocity), 345},
};

PyDoc_STRVAR(doc_QTouchDevice, "\1QTouchDevice()\n"
    "QTouchDevice(QTouchDevice)");


static pyqt5ClassPluginDef plugin_QTouchDevice = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTouchDevice = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTouchDevice,
        {0},
        &plugin_QTouchDevice
    },
    {
        sipNameNr_QTouchDevice,
        {0, 0, 1},
        9, methods_QTouchDevice,
        9, enummembers_QTouchDevice,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTouchDevice,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 50 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 27329 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 27333 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 27336 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 27339 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 27342 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 27345 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 82 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 27350 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 27353 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 27356 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 27359 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 27362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 27365 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 27368 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 27371 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 27374 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 27377 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 27380 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 27383 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 27386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 27389 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 27392 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 27395 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 27398 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 27401 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 27404 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQTextTable::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextTable);

    return  ::QTextTable::metaObject();
}

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));
}

bool sipQTextTable::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QTextTable::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQTextTable::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QTextTable::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQTextTable::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QTextTable::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextTable::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QTextTable::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextTable::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QTextTable::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextTable::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QTextTable::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 27698 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 27758 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "resize(self, 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, "insertRows(self, 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, "insertColumns(self, 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, "removeRows(self, 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, "removeColumns(self, 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, "mergeCells(self, int, int, int, int)\n"
    "mergeCells(self, 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, "splitCell(self, 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, "rows(self) -> 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, "columns(self) -> 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, "cellAt(self, int, int) -> QTextTableCell\n"
    "cellAt(self, int) -> QTextTableCell\n"
    "cellAt(self, 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, "rowStart(self, 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, "rowEnd(self, 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, "format(self) -> 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, "setFormat(self, 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, "appendRows(self, 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, "appendColumns(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextTable(void *, const sipTypeDef *);}
static void *cast_QTextTable(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextTable *sipCpp = reinterpret_cast< ::QTextTable *>(sipCppV);

    if (targetType == sipType_QTextFrame)
        return static_cast< ::QTextFrame *>(sipCpp);

    if (targetType == sipType_QTextObject)
        return static_cast< ::QTextObject *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTextTable *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTextTable(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{310, 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)");


static pyqt5ClassPluginDef plugin_QTextTable = {
    & ::QTextTable::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextTable = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextTable,
        {0},
        &plugin_QTextTable
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 28653 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 28657 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 28660 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextTableCell_format, "format(self) -> 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, "setFormat(self, 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, "row(self) -> 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, "column(self) -> 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, "rowSpan(self) -> 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, "columnSpan(self) -> 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, "isValid(self) -> 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, "firstCursorPosition(self) -> 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, "lastCursorPosition(self) -> 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, "tableCellFormatIndex(self) -> 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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QTextTableCell = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextTableCell = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextTableCell,
        {0},
        &plugin_QTextTableCell
    },
    {
        sipNameNr_QTextTableCell,
        {0, 0, 1},
        10, methods_QTextTableCell,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextTableCell,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 84 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 29162 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 29166 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 29169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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);
}


/* 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 (sipIsOwnedByPython(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 *, PyObject *)
{
     ::QChar*sipVal;
     ::QTextOption::Tab *sipCpp = reinterpret_cast< ::QTextOption::Tab *>(sipSelf);

    sipVal = &sipCpp->delimiter;

    return sipConvertFromType(sipVal, sipType_QChar, NULL);
}


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, delim: str = '')\n"
    "QTextOption.Tab(QTextOption.Tab)");


static pyqt5ClassPluginDef plugin_QTextOption_Tab = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextOption_Tab = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextOption__Tab,
        {0},
        &plugin_QTextOption_Tab
    },
    {
        sipNameNr_Tab,
        {333, 255, 0},
        0, 0,
        0, 0,
        3, variables_QTextOption_Tab,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextOption_Tab,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 29496 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 29500 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QTextOption_Flags___hash__(PyObject *);}
static long slot_QTextOption_Flags___hash__(PyObject *sipSelf)
{
     ::QTextOption::Flags *sipCpp = reinterpret_cast< ::QTextOption::Flags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Flags));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QTextOption::Flags::Int();
#line 29518 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextOption::Flags::Int() != 0);
#line 29543 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextOption::Flags::Int() != a0->operator QTextOption::Flags::Int());
#line 29573 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextOption::Flags::Int() == a0->operator QTextOption::Flags::Int());
#line 29609 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QTextOption::Flags(*sipCpp ^ a0);
#line 29648 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTextOption_Flags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QTextOption::Flags(*sipCpp | a0);
#line 29720 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTextOption_Flags___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QTextOption::Flags();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QTextOption::Flags(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 29988 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextOption_Flags[] = {
    {(void *)slot_QTextOption_Flags___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QTextOption_Flags___xor__, xor_slot},
    {(void *)slot_QTextOption_Flags___ior__, ior_slot},
    {(void *)slot_QTextOption_Flags___or__, or_slot},
    {(void *)slot_QTextOption_Flags___iand__, iand_slot},
    {(void *)slot_QTextOption_Flags___and__, and_slot},
    {(void *)slot_QTextOption_Flags___invert__, invert_slot},
    {(void *)slot_QTextOption_Flags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTextOption_Flags, "\1QTextOption.Flags()\n"
    "QTextOption.Flags(Union[QTextOption.Flags, QTextOption.Flag])\n"
    "QTextOption.Flags(QTextOption.Flags)");


static pyqt5ClassPluginDef plugin_QTextOption_Flags = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextOption_Flags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextOption__Flags,
        {0},
        &plugin_QTextOption_Flags
    },
    {
        sipNameNr_Flags,
        {333, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextOption_Flags,
    -1,
    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,
    0,
    convertTo_QTextOption_Flags,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 30074 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 30078 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 30081 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 84 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 30086 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 30089 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 746 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 30092 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 30095 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextOption_alignment, "alignment(self) -> 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, "setTextDirection(self, 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, "textDirection(self) -> 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, "setWrapMode(self, 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, "wrapMode(self) -> 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, "flags(self) -> 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, "tabStop(self) -> 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, "setTabArray(self, Iterable[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, "tabArray(self) -> List[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, "setUseDesignMetrics(self, 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, "useDesignMetrics(self) -> 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, "setAlignment(self, Union[Qt.Alignment, Qt.AlignmentFlag])");

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, "setFlags(self, Union[QTextOption.Flags, QTextOption.Flag])");

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, "setTabStop(self, 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, "setTabs(self, Iterable[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, "tabs(self) -> List[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;
}


/* 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 (sipIsOwnedByPython(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), 334},
    {sipName_CenterTab, static_cast<int>( ::QTextOption::CenterTab), 337},
    {sipName_DelimiterTab, static_cast<int>( ::QTextOption::DelimiterTab), 337},
    {sipName_IncludeTrailingSpaces, static_cast<int>( ::QTextOption::IncludeTrailingSpaces), 334},
    {sipName_LeftTab, static_cast<int>( ::QTextOption::LeftTab), 337},
    {sipName_ManualWrap, static_cast<int>( ::QTextOption::ManualWrap), 338},
    {sipName_NoWrap, static_cast<int>( ::QTextOption::NoWrap), 338},
    {sipName_RightTab, static_cast<int>( ::QTextOption::RightTab), 337},
    {sipName_ShowDocumentTerminator, static_cast<int>( ::QTextOption::ShowDocumentTerminator), 334},
    {sipName_ShowLineAndParagraphSeparators, static_cast<int>( ::QTextOption::ShowLineAndParagraphSeparators), 334},
    {sipName_ShowTabsAndSpaces, static_cast<int>( ::QTextOption::ShowTabsAndSpaces), 334},
    {sipName_SuppressColors, static_cast<int>( ::QTextOption::SuppressColors), 334},
    {sipName_WordWrap, static_cast<int>( ::QTextOption::WordWrap), 338},
    {sipName_WrapAnywhere, static_cast<int>( ::QTextOption::WrapAnywhere), 338},
    {sipName_WrapAtWordBoundaryOrAnywhere, static_cast<int>( ::QTextOption::WrapAtWordBoundaryOrAnywhere), 338},
};

PyDoc_STRVAR(doc_QTextOption, "\1QTextOption()\n"
    "QTextOption(Union[Qt.Alignment, Qt.AlignmentFlag])\n"
    "QTextOption(QTextOption)");


static pyqt5ClassPluginDef plugin_QTextOption = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextOption = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextOption,
        {0},
        &plugin_QTextOption
    },
    {
        sipNameNr_QTextOption,
        {0, 0, 1},
        16, methods_QTextOption,
        15, enummembers_QTextOption,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextOption,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 257 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 30737 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTextBlockUserData *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTextBlockUserData(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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)");


static pyqt5ClassPluginDef plugin_QTextBlockUserData = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextBlockUserData = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextBlockUserData,
        {0},
        &plugin_QTextBlockUserData
    },
    {
        sipNameNr_QTextBlockUserData,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextBlockUserData,
    -1,
    -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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 233 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 30911 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 30915 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 30918 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 30921 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 30924 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextFragment_isValid, "isValid(self) -> 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, "position(self) -> 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, "length(self) -> 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, "contains(self, 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, "charFormat(self) -> 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, "charFormatIndex(self) -> 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, "text(self) -> 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, "glyphRuns(self, from_: int = -1, length: int = -1) -> List[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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QTextFragment = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextFragment = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextFragment,
        {0},
        &plugin_QTextFragment
    },
    {
        sipNameNr_QTextFragment,
        {0, 0, 1},
        8, methods_QTextFragment,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextFragment,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 152 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 31442 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 233 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 31446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextBlock_iterator_fragment, "fragment(self) -> 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, "atEnd(self) -> 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 174 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
            if (a0 > 0)
                while (a0--)
                    (*sipCpp)--;
            else if (a0 < 0)
                while (a0++)
                    (*sipCpp)++;
#line 31533 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 164 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
            if (a0 > 0)
                while (a0--)
                    (*sipCpp)++;
            else if (a0 < 0)
                while (a0++)
                    (*sipCpp)--;
#line 31580 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QTextBlock_iterator = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextBlock_iterator = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextBlock__iterator,
        {0},
        &plugin_QTextBlock_iterator
    },
    {
        sipNameNr_iterator,
        {281, 255, 0},
        2, methods_QTextBlock_iterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextBlock_iterator,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 31810 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 31814 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 31819 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 31822 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 257 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 31825 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 152 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 31830 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlist.sip"
#include <qtextlist.h>
#line 31833 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 31836 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 31839 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 31842 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 31845 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 31848 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextBlock_isValid, "isValid(self) -> 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, "position(self) -> 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, "length(self) -> 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, "contains(self, 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, "layout(self) -> 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, "blockFormat(self) -> 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, "blockFormatIndex(self) -> 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, "charFormat(self) -> 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, "charFormatIndex(self) -> 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, "text(self) -> 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, "document(self) -> 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, "textList(self) -> 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, "begin(self) -> 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, "end(self) -> 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, "next(self) -> 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, "previous(self) -> 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, "userData(self) -> 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, "setUserData(self, 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 191 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 32366 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "userState(self) -> 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, "setUserState(self, 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, "clearLayout(self)");

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, "revision(self) -> 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, "setRevision(self, 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, "isVisible(self) -> 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, "setVisible(self, 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, "blockNumber(self) -> 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, "firstLineNumber(self) -> 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, "setLineCount(self, 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, "lineCount(self) -> 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, "textDirection(self) -> 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, "textFormats(self) -> List[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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QTextBlock = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextBlock = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextBlock,
        {0},
        &plugin_QTextBlock
    },
    {
        sipNameNr_QTextBlock,
        {0, 0, 1},
        31, methods_QTextBlock,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextBlock,
    -1,
    -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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 82 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 33052 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 33056 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 33059 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextFrame_iterator_parentFrame, "parentFrame(self) -> 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, "currentFrame(self) -> 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, "currentBlock(self) -> 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, "atEnd(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
            if (a0 > 0)
                while (a0--)
                    (*sipCpp)--;
            else if (a0 < 0)
                while (a0++)
                    (*sipCpp)++;
#line 33202 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
            if (a0 > 0)
                while (a0--)
                    (*sipCpp)++;
            else if (a0 < 0)
                while (a0++)
                    (*sipCpp)--;
#line 33249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QTextFrame_iterator = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextFrame_iterator = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextFrame__iterator,
        {0},
        &plugin_QTextFrame_iterator
    },
    {
        sipNameNr_iterator,
        {310, 255, 0},
        4, methods_QTextFrame_iterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextFrame_iterator,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 33481 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 33485 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 33488 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 82 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 33493 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 33496 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 33499 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 33502 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 33505 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33508 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33511 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33514 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33517 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 33520 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 33523 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 33526 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 33529 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 33532 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 33535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 33538 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 33541 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 33544 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 33547 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 33550 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQTextFrame::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextFrame);

    return  ::QTextFrame::metaObject();
}

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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 33850 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 33910 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "setFormat(self, 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, "frameFormat(self) -> 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, "firstCursorPosition(self) -> 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, "lastCursorPosition(self) -> 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, "firstPosition(self) -> 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, "lastPosition(self) -> 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, "childFrames(self) -> object");

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, "parentFrame(self) -> 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, "begin(self) -> 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, "end(self) -> 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, "setFrameFormat(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextFrame(void *, const sipTypeDef *);}
static void *cast_QTextFrame(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextFrame *sipCpp = reinterpret_cast< ::QTextFrame *>(sipCppV);

    if (targetType == sipType_QTextObject)
        return static_cast< ::QTextObject *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTextFrame *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTextFrame(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{331, 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)");


static pyqt5ClassPluginDef plugin_QTextFrame = {
    & ::QTextFrame::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextFrame = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextFrame,
        {0},
        &plugin_QTextFrame
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 34595 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 34599 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 34602 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 34605 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34608 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34611 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34614 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 34617 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 34620 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34623 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 34626 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 34629 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 34632 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 34635 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 34638 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 34641 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 34644 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 34647 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 34650 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQTextObject::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextObject);

    return  ::QTextObject::metaObject();
}

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));
}

bool sipQTextObject::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QTextObject::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQTextObject::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QTextObject::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQTextObject::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QTextObject::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextObject::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QTextObject::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextObject::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QTextObject::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextObject::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QTextObject::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 34950 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 35010 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "setFormat(self, 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, "format(self) -> 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, "formatIndex(self) -> 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, "document(self) -> 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, "objectIndex(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextObject(void *, const sipTypeDef *);}
static void *cast_QTextObject(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextObject *sipCpp = reinterpret_cast< ::QTextObject *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTextObject *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTextObject(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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)");


static pyqt5ClassPluginDef plugin_QTextObject = {
    & ::QTextObject::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextObject = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextObject,
        {0},
        &plugin_QTextObject
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlist.sip"
#include <qtextlist.h>
#line 35514 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 35518 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 35521 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 35524 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 35527 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 35530 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 35533 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35536 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35539 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35542 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 35545 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 35548 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 35551 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 35554 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 35557 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 35560 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 35563 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 35566 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 35569 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 35572 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 35575 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);
    void blockInserted(const  ::QTextBlock&);
    void blockRemoved(const  ::QTextBlock&);
    void blockFormatChanged(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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQTextList::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextList);

    return  ::QTextList::metaObject();
}

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));
}

bool sipQTextList::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QTextList::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQTextList::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QTextList::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQTextList::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QTextList::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextList::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QTextList::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextList::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QTextList::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextList::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QTextList::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextList::blockInserted(const  ::QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_blockInserted);

    if (!sipMeth)
    {
         ::QTextList::blockInserted(a0);
        return;
    }

    extern void sipVH_QtGui_106(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QTextBlock&);

    sipVH_QtGui_106(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_106(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QTextBlock&);

    sipVH_QtGui_106(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextList::blockFormatChanged(const  ::QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_blockFormatChanged);

    if (!sipMeth)
    {
         ::QTextList::blockFormatChanged(a0);
        return;
    }

    extern void sipVH_QtGui_106(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QTextBlock&);

    sipVH_QtGui_106(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 35950 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 36010 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "blockInserted(self, 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 || sipIsDerivedClass((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, "blockRemoved(self, 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 || sipIsDerivedClass((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, "blockFormatChanged(self, 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 || sipIsDerivedClass((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, "blockList(self) -> object");

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, "count(self) -> 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, "item(self, 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, "itemNumber(self, 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, "itemText(self, 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, "removeItem(self, 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, "remove(self, 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, "add(self, 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, "format(self) -> 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, "setFormat(self, 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 36618 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QTextList(void *, const sipTypeDef *);}
static void *cast_QTextList(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextList *sipCpp = reinterpret_cast< ::QTextList *>(sipCppV);

    if (targetType == sipType_QTextBlockGroup)
        return static_cast< ::QTextBlockGroup *>(sipCpp);

    if (targetType == sipType_QTextObject)
        return static_cast< ::QTextObject *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTextList *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTextList(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{285, 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)");


static pyqt5ClassPluginDef plugin_QTextList = {
    & ::QTextList::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextList = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextList,
        {0},
        &plugin_QTextList
    },
    {
        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
};

#line 47 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 36794 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 36798 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 36801 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 36804 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 36807 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 36810 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36813 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36816 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36819 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 36822 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 36825 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 36828 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 36831 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 36834 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 36837 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 36840 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 36843 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 36846 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 36849 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 36852 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 36855 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 blockFormatChanged(const  ::QTextBlock&);
    void blockRemoved(const  ::QTextBlock&);
    void blockInserted(const  ::QTextBlock&);
    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:
    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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQTextBlockGroup::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextBlockGroup);

    return  ::QTextBlockGroup::metaObject();
}

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::blockFormatChanged(const  ::QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_blockFormatChanged);

    if (!sipMeth)
    {
         ::QTextBlockGroup::blockFormatChanged(a0);
        return;
    }

    extern void sipVH_QtGui_106(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QTextBlock&);

    sipVH_QtGui_106(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::blockRemoved(const  ::QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_blockRemoved);

    if (!sipMeth)
    {
         ::QTextBlockGroup::blockRemoved(a0);
        return;
    }

    extern void sipVH_QtGui_106(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QTextBlock&);

    sipVH_QtGui_106(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::blockInserted(const  ::QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_blockInserted);

    if (!sipMeth)
    {
         ::QTextBlockGroup::blockInserted(a0);
        return;
    }

    extern void sipVH_QtGui_106(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QTextBlock&);

    sipVH_QtGui_106(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QTextBlockGroup::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QTextBlockGroup::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QTextBlockGroup::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QTextBlockGroup::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QTextBlockGroup::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQTextBlockGroup::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QTextBlockGroup::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipQTextBlockGroup::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QTextBlockGroup::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 37236 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 37296 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "setFormat(self, 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, "blockInserted(self, 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 || sipIsDerivedClass((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, "blockRemoved(self, 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 || sipIsDerivedClass((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, "blockFormatChanged(self, 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 || sipIsDerivedClass((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, "blockList(self) -> object");

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 inheritance hierarchy. */
extern "C" {static void *cast_QTextBlockGroup(void *, const sipTypeDef *);}
static void *cast_QTextBlockGroup(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextBlockGroup *sipCpp = reinterpret_cast< ::QTextBlockGroup *>(sipCppV);

    if (targetType == sipType_QTextObject)
        return static_cast< ::QTextObject *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTextBlockGroup *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTextBlockGroup(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{331, 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)");


static pyqt5ClassPluginDef plugin_QTextBlockGroup = {
    & ::QTextBlockGroup::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextBlockGroup = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextBlockGroup,
        {0},
        &plugin_QTextBlockGroup
    },
    {
        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
};

#line 132 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 37806 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 37810 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 37813 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 37816 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 37819 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 37824 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 37827 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextLine_isValid, "isValid(self) -> 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, "rect(self) -> 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, "x(self) -> 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, "y(self) -> 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, "width(self) -> 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, "ascent(self) -> 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, "descent(self) -> 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, "height(self) -> 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, "naturalTextWidth(self) -> 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, "naturalTextRect(self) -> 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, "cursorToX(self, int, edge: QTextLine.Edge = QTextLine.Leading) -> Tuple[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, "xToCursor(self, float, edge: QTextLine.CursorPosition = 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, "setLineWidth(self, 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, "setNumColumns(self, int)\n"
    "setNumColumns(self, 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, "setPosition(self, Union[QPointF, QPoint])");

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, "textStart(self) -> 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, "textLength(self) -> 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, "lineNumber(self) -> 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, "draw(self, QPainter, Union[QPointF, QPoint], selection: QTextLayout.FormatRange = 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, "position(self) -> 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, "leading(self) -> 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, "setLeadingIncluded(self, 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, "leadingIncluded(self) -> 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, "horizontalAdvance(self) -> 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, "glyphRuns(self, from_: int = -1, length: int = -1) -> List[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;
}


/* 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 (sipIsOwnedByPython(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), 326},
    {sipName_CursorOnCharacter, static_cast<int>( ::QTextLine::CursorOnCharacter), 326},
    {sipName_Leading, static_cast<int>( ::QTextLine::Leading), 327},
    {sipName_Trailing, static_cast<int>( ::QTextLine::Trailing), 327},
};

PyDoc_STRVAR(doc_QTextLine, "\1QTextLine()\n"
    "QTextLine(QTextLine)");


static pyqt5ClassPluginDef plugin_QTextLine = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextLine = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextLine,
        {0},
        &plugin_QTextLine
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 38748 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 38752 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static PyObject *slot_QTextLayout_FormatRange___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextLayout_FormatRange___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QTextLayout::FormatRange *sipCpp = reinterpret_cast< ::QTextLayout::FormatRange *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextLayout_FormatRange));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::QTextLayout::FormatRange* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextLayout_FormatRange, &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_QTextLayout_FormatRange, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QTextLayout_FormatRange___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextLayout_FormatRange___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QTextLayout::FormatRange *sipCpp = reinterpret_cast< ::QTextLayout::FormatRange *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextLayout_FormatRange));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::QTextLayout::FormatRange* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextLayout_FormatRange, &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_QTextLayout_FormatRange, sipSelf, sipArg);
}


/* 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 (sipIsOwnedByPython(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;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextLayout_FormatRange[] = {
    {(void *)slot_QTextLayout_FormatRange___eq__, eq_slot},
    {(void *)slot_QTextLayout_FormatRange___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


extern "C" {static PyObject *varget_QTextLayout_FormatRange_format(void *, PyObject *, PyObject *);}
static PyObject *varget_QTextLayout_FormatRange_format(void *sipSelf, PyObject *, PyObject *)
{
     ::QTextCharFormat*sipVal;
     ::QTextLayout::FormatRange *sipCpp = reinterpret_cast< ::QTextLayout::FormatRange *>(sipSelf);

    sipVal = &sipCpp->format;

    return sipConvertFromType(sipVal, sipType_QTextCharFormat, NULL);
}


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)");


static pyqt5ClassPluginDef plugin_QTextLayout_FormatRange = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextLayout_FormatRange = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextLayout__FormatRange,
        {0},
        &plugin_QTextLayout_FormatRange
    },
    {
        sipNameNr_FormatRange,
        {320, 255, 0},
        0, 0,
        0, 0,
        3, variables_QTextLayout_FormatRange,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextLayout_FormatRange,
    -1,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextLayout_FormatRange,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 39053 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 39057 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 39060 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 39063 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 39066 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 39069 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 39074 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 39077 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 39080 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 39083 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 39086 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 39089 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 39092 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 132 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 39095 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 39098 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 39101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextLayout_setFont, "setFont(self, 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, "font(self) -> 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, "setText(self, 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, "text(self) -> 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, "setTextOption(self, 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, "textOption(self) -> 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, "setPreeditArea(self, 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, "preeditAreaPosition(self) -> 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, "preeditAreaText(self) -> 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, "setAdditionalFormats(self, object)");

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, "additionalFormats(self) -> List[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, "clearAdditionalFormats(self)");

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, "setCacheEnabled(self, 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, "cacheEnabled(self) -> 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, "beginLayout(self)");

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, "endLayout(self)");

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, "createLine(self) -> 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, "lineCount(self) -> 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, "lineAt(self, 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, "lineForTextPosition(self, 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, "isValidCursorPosition(self, 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, "nextCursorPosition(self, int, mode: QTextLayout.CursorMode = 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, "previousCursorPosition(self, int, mode: QTextLayout.CursorMode = 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, "draw(self, QPainter, Union[QPointF, QPoint], selections: object = QVector&lt;QTextLayout.FormatRange&gt;(), clip: QRectF = 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, "drawCursor(self, QPainter, Union[QPointF, QPoint], int)\n"
    "drawCursor(self, QPainter, Union[QPointF, QPoint], 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, "position(self) -> 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, "setPosition(self, Union[QPointF, QPoint])");

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, "boundingRect(self) -> 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, "minimumWidth(self) -> 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, "maximumWidth(self) -> 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, "clearLayout(self)");

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, "setCursorMoveStyle(self, 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, "cursorMoveStyle(self) -> 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, "leftCursorPosition(self, 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, "rightCursorPosition(self, 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, "glyphRuns(self, from_: int = -1, length: int = -1) -> object");

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;
}


PyDoc_STRVAR(doc_QTextLayout_setFormats, "setFormats(self, Iterable[QTextLayout.FormatRange])");

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

    {
        const QVector< ::QTextLayout::FormatRange>* a0;
        int a0State = 0;
         ::QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_QVector_0100QTextLayout_FormatRange,&a0, &a0State))
        {
            sipCpp->setFormats(*a0);
            sipReleaseType(const_cast<QVector< ::QTextLayout::FormatRange> *>(a0),sipType_QVector_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_setFormats, doc_QTextLayout_setFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_formats, "formats(self) -> List[QTextLayout.FormatRange]");

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

    {
        const  ::QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            QVector< ::QTextLayout::FormatRange>*sipRes;

            sipRes = new QVector< ::QTextLayout::FormatRange>(sipCpp->formats());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_formats, doc_QTextLayout_formats);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_clearFormats, "clearFormats(self)");

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

    {
         ::QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            sipCpp->clearFormats();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_clearFormats, doc_QTextLayout_clearFormats);

    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 (sipIsOwnedByPython(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_clearFormats), meth_QTextLayout_clearFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_clearFormats)},
    {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_formats), meth_QTextLayout_formats, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_formats)},
    {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_setFormats), meth_QTextLayout_setFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_setFormats)},
    {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), 321},
    {sipName_SkipWords, static_cast<int>( ::QTextLayout::SkipWords), 321},
};

PyDoc_STRVAR(doc_QTextLayout, "\1QTextLayout()\n"
    "QTextLayout(str)\n"
    "QTextLayout(str, QFont, paintDevice: QPaintDevice = None)\n"
    "QTextLayout(QTextBlock)");


static pyqt5ClassPluginDef plugin_QTextLayout = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextLayout = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextLayout,
        {0},
        &plugin_QTextLayout
    },
    {
        sipNameNr_QTextLayout,
        {0, 0, 1},
        39, methods_QTextLayout,
        2, enummembers_QTextLayout,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextLayout,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 40462 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40466 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 40469 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 40472 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextInlineObject_isValid, "isValid(self) -> 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, "rect(self) -> 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, "width(self) -> 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, "ascent(self) -> 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, "descent(self) -> 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, "height(self) -> 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, "textDirection(self) -> 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, "setWidth(self, 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, "setAscent(self, 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, "setDescent(self, 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, "textPosition(self) -> 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, "formatIndex(self) -> 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, "format(self) -> 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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QTextInlineObject = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextInlineObject = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextInlineObject,
        {0},
        &plugin_QTextInlineObject
    },
    {
        sipNameNr_QTextInlineObject,
        {0, 0, 1},
        13, methods_QTextInlineObject,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextInlineObject,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40987 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 40991 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 40994 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 40997 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41000 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 41003 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 41006 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41009 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 41012 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 41015 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41018 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41021 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41024 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41027 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41030 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 41033 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 41036 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 41039 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41042 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextTableCellFormat_isValid, "isValid(self) -> 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, "setTopPadding(self, 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, "topPadding(self) -> 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, "setBottomPadding(self, 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, "bottomPadding(self) -> 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, "setLeftPadding(self, 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, "leftPadding(self) -> 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, "setRightPadding(self, 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, "rightPadding(self) -> 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, "setPadding(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextTableCellFormat(void *, const sipTypeDef *);}
static void *cast_QTextTableCellFormat(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextTableCellFormat *sipCpp = reinterpret_cast< ::QTextTableCellFormat *>(sipCppV);

    if (targetType == sipType_QTextCharFormat)
        return static_cast< ::QTextCharFormat *>(sipCpp);

    if (targetType == sipType_QTextFormat)
        return static_cast< ::QTextFormat *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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[] = {{287, 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)");


static pyqt5ClassPluginDef plugin_QTextTableCellFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextTableCellFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextTableCellFormat,
        {0},
        &plugin_QTextTableCellFormat
    },
    {
        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
};

#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41490 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 41494 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 41497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41500 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41503 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 41506 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41512 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41515 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 41518 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41521 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41524 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41527 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41530 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 41533 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 41536 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 41539 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 41542 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 41545 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextTableFormat_isValid, "isValid(self) -> 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, "columns(self) -> 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, "setColumnWidthConstraints(self, Iterable[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, "columnWidthConstraints(self) -> List[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, "clearColumnWidthConstraints(self)");

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, "cellSpacing(self) -> 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, "setCellSpacing(self, 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, "cellPadding(self) -> 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, "alignment(self) -> 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, "setColumns(self, 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, "setCellPadding(self, 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, "setAlignment(self, Union[Qt.Alignment, Qt.AlignmentFlag])");

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, "setHeaderRowCount(self, 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, "headerRowCount(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextTableFormat(void *, const sipTypeDef *);}
static void *cast_QTextTableFormat(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextTableFormat *sipCpp = reinterpret_cast< ::QTextTableFormat *>(sipCppV);

    if (targetType == sipType_QTextFrameFormat)
        return static_cast< ::QTextFrameFormat *>(sipCpp);

    if (targetType == sipType_QTextFormat)
        return static_cast< ::QTextFormat *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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[] = {{312, 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)");


static pyqt5ClassPluginDef plugin_QTextTableFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextTableFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextTableFormat,
        {0},
        &plugin_QTextTableFormat
    },
    {
        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
};

#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42112 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 42116 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42119 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42122 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42125 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42128 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 42131 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42134 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42137 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42140 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42143 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42146 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 42149 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 42152 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 42155 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 42158 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 42161 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 42164 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextFrameFormat_isValid, "isValid(self) -> 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, "setPosition(self, 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, "position(self) -> 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, "border(self) -> 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, "margin(self) -> 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, "padding(self) -> 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, "setWidth(self, QTextLength)\n"
    "setWidth(self, 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, "width(self) -> 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, "height(self) -> 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, "setBorder(self, 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, "setMargin(self, 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, "setPadding(self, 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, "setHeight(self, float)\n"
    "setHeight(self, 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, "setPageBreakPolicy(self, Union[QTextFormat.PageBreakFlags, QTextFormat.PageBreakFlag])");

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, "pageBreakPolicy(self) -> 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, "setBorderBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "borderBrush(self) -> 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, "setBorderStyle(self, 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, "borderStyle(self) -> 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, "topMargin(self) -> 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, "bottomMargin(self) -> 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, "leftMargin(self) -> 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, "rightMargin(self) -> 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, "setTopMargin(self, 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, "setBottomMargin(self, 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, "setLeftMargin(self, 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, "setRightMargin(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextFrameFormat(void *, const sipTypeDef *);}
static void *cast_QTextFrameFormat(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextFrameFormat *sipCpp = reinterpret_cast< ::QTextFrameFormat *>(sipCppV);

    if (targetType == sipType_QTextFormat)
        return static_cast< ::QTextFormat *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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[] = {{303, 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), 313},
    {sipName_BorderStyle_DotDash, static_cast<int>( ::QTextFrameFormat::BorderStyle_DotDash), 313},
    {sipName_BorderStyle_DotDotDash, static_cast<int>( ::QTextFrameFormat::BorderStyle_DotDotDash), 313},
    {sipName_BorderStyle_Dotted, static_cast<int>( ::QTextFrameFormat::BorderStyle_Dotted), 313},
    {sipName_BorderStyle_Double, static_cast<int>( ::QTextFrameFormat::BorderStyle_Double), 313},
    {sipName_BorderStyle_Groove, static_cast<int>( ::QTextFrameFormat::BorderStyle_Groove), 313},
    {sipName_BorderStyle_Inset, static_cast<int>( ::QTextFrameFormat::BorderStyle_Inset), 313},
    {sipName_BorderStyle_None, static_cast<int>( ::QTextFrameFormat::BorderStyle_None), 313},
    {sipName_BorderStyle_Outset, static_cast<int>( ::QTextFrameFormat::BorderStyle_Outset), 313},
    {sipName_BorderStyle_Ridge, static_cast<int>( ::QTextFrameFormat::BorderStyle_Ridge), 313},
    {sipName_BorderStyle_Solid, static_cast<int>( ::QTextFrameFormat::BorderStyle_Solid), 313},
    {sipName_FloatLeft, static_cast<int>( ::QTextFrameFormat::FloatLeft), 314},
    {sipName_FloatRight, static_cast<int>( ::QTextFrameFormat::FloatRight), 314},
    {sipName_InFlow, static_cast<int>( ::QTextFrameFormat::InFlow), 314},
};

PyDoc_STRVAR(doc_QTextFrameFormat, "\1QTextFrameFormat()\n"
    "QTextFrameFormat(QTextFrameFormat)");


static pyqt5ClassPluginDef plugin_QTextFrameFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextFrameFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextFrameFormat,
        {0},
        &plugin_QTextFrameFormat
    },
    {
        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
};

#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43153 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43157 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 43160 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 43163 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43166 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 43169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 43172 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43175 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43178 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 43181 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43184 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43187 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43190 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43193 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43196 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 43199 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 43202 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 43205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43208 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextImageFormat_isValid, "isValid(self) -> 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, "name(self) -> 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, "width(self) -> 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, "height(self) -> 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, "setName(self, 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, "setWidth(self, 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, "setHeight(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextImageFormat(void *, const sipTypeDef *);}
static void *cast_QTextImageFormat(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextImageFormat *sipCpp = reinterpret_cast< ::QTextImageFormat *>(sipCppV);

    if (targetType == sipType_QTextCharFormat)
        return static_cast< ::QTextCharFormat *>(sipCpp);

    if (targetType == sipType_QTextFormat)
        return static_cast< ::QTextFormat *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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[] = {{287, 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)");


static pyqt5ClassPluginDef plugin_QTextImageFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextImageFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextImageFormat,
        {0},
        &plugin_QTextImageFormat
    },
    {
        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
};

#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43571 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43575 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43578 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43581 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 43584 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43587 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43590 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43593 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43596 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43599 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43602 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 43605 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 43608 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 43611 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43614 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 43617 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 43620 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextListFormat_isValid, "isValid(self) -> 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, "style(self) -> 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, "indent(self) -> 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, "setStyle(self, 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, "setIndent(self, 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, "numberPrefix(self) -> 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, "numberSuffix(self) -> 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, "setNumberPrefix(self, 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, "setNumberSuffix(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextListFormat(void *, const sipTypeDef *);}
static void *cast_QTextListFormat(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextListFormat *sipCpp = reinterpret_cast< ::QTextListFormat *>(sipCppV);

    if (targetType == sipType_QTextFormat)
        return static_cast< ::QTextFormat *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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[] = {{303, 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), 330},
    {sipName_ListDecimal, static_cast<int>( ::QTextListFormat::ListDecimal), 330},
    {sipName_ListDisc, static_cast<int>( ::QTextListFormat::ListDisc), 330},
    {sipName_ListLowerAlpha, static_cast<int>( ::QTextListFormat::ListLowerAlpha), 330},
    {sipName_ListLowerRoman, static_cast<int>( ::QTextListFormat::ListLowerRoman), 330},
    {sipName_ListSquare, static_cast<int>( ::QTextListFormat::ListSquare), 330},
    {sipName_ListUpperAlpha, static_cast<int>( ::QTextListFormat::ListUpperAlpha), 330},
    {sipName_ListUpperRoman, static_cast<int>( ::QTextListFormat::ListUpperRoman), 330},
};

PyDoc_STRVAR(doc_QTextListFormat, "\1QTextListFormat()\n"
    "QTextListFormat(QTextListFormat)");


static pyqt5ClassPluginDef plugin_QTextListFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextListFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextListFormat,
        {0},
        &plugin_QTextListFormat
    },
    {
        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
};

#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44051 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 44055 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 84 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 44060 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44063 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 44066 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44069 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44072 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 44075 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 44078 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44081 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44084 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44087 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44090 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44093 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 44096 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 44099 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 44102 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44105 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 44108 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 44111 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 44114 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextBlockFormat_isValid, "isValid(self) -> 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, "alignment(self) -> 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, "setTopMargin(self, 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, "topMargin(self) -> 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, "setBottomMargin(self, 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, "bottomMargin(self) -> 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, "setLeftMargin(self, 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, "leftMargin(self) -> 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, "setRightMargin(self, 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, "rightMargin(self) -> 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, "setTextIndent(self, 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, "textIndent(self) -> 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, "indent(self) -> 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, "setNonBreakableLines(self, 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, "nonBreakableLines(self) -> 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, "setAlignment(self, Union[Qt.Alignment, Qt.AlignmentFlag])");

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, "setIndent(self, 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, "setPageBreakPolicy(self, Union[QTextFormat.PageBreakFlags, QTextFormat.PageBreakFlag])");

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, "pageBreakPolicy(self) -> 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, "setTabPositions(self, object)");

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, "tabPositions(self) -> List[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, "setLineHeight(self, 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, "lineHeight(self, float, float) -> float\n"
    "lineHeight(self) -> 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, "lineHeightType(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextBlockFormat(void *, const sipTypeDef *);}
static void *cast_QTextBlockFormat(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextBlockFormat *sipCpp = reinterpret_cast< ::QTextBlockFormat *>(sipCppV);

    if (targetType == sipType_QTextFormat)
        return static_cast< ::QTextFormat *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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[] = {{303, 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), 284},
    {sipName_LineDistanceHeight, static_cast<int>( ::QTextBlockFormat::LineDistanceHeight), 284},
    {sipName_MinimumHeight, static_cast<int>( ::QTextBlockFormat::MinimumHeight), 284},
    {sipName_ProportionalHeight, static_cast<int>( ::QTextBlockFormat::ProportionalHeight), 284},
    {sipName_SingleHeight, static_cast<int>( ::QTextBlockFormat::SingleHeight), 284},
};

PyDoc_STRVAR(doc_QTextBlockFormat, "\1QTextBlockFormat()\n"
    "QTextBlockFormat(QTextBlockFormat)");


static pyqt5ClassPluginDef plugin_QTextBlockFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextBlockFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextBlockFormat,
        {0},
        &plugin_QTextBlockFormat
    },
    {
        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
};

#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 44997 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 45001 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 45004 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 45007 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 45010 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 45013 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45016 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45019 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 45022 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 45025 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45028 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45031 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45034 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45037 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45040 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 45043 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 45046 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 45049 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45052 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextCharFormat_isValid, "isValid(self) -> 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, "setFont(self, QFont)\n"
    "setFont(self, 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, "font(self) -> 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, "setFontFamily(self, 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, "fontFamily(self) -> 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, "setFontPointSize(self, 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, "fontPointSize(self) -> 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, "setFontWeight(self, 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, "fontWeight(self) -> 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, "setFontItalic(self, 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, "fontItalic(self) -> 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, "setFontUnderline(self, 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, "fontUnderline(self) -> 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, "setFontOverline(self, 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, "fontOverline(self) -> 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, "setFontStrikeOut(self, 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, "fontStrikeOut(self) -> 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, "setUnderlineColor(self, Union[QColor, Qt.GlobalColor, QGradient])");

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, "underlineColor(self) -> 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, "setFontFixedPitch(self, 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, "fontFixedPitch(self) -> 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, "setVerticalAlignment(self, 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, "verticalAlignment(self) -> 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, "setAnchor(self, 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, "isAnchor(self) -> 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, "setAnchorHref(self, 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, "anchorHref(self) -> 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, "tableCellRowSpan(self) -> 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, "tableCellColumnSpan(self) -> 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, "setTableCellRowSpan(self, 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, "setTableCellColumnSpan(self, 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, "setTextOutline(self, Union[QPen, QColor, Qt.GlobalColor, QGradient])");

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, "textOutline(self) -> 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, "setUnderlineStyle(self, 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, "underlineStyle(self) -> 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, "setToolTip(self, 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, "toolTip(self) -> 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, "setAnchorNames(self, Iterable[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, "anchorNames(self) -> List[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, "setFontCapitalization(self, 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, "fontCapitalization(self) -> 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, "setFontLetterSpacing(self, 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, "fontLetterSpacing(self) -> 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, "setFontWordSpacing(self, 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, "fontWordSpacing(self) -> 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, "setFontStyleHint(self, QFont.StyleHint, strategy: QFont.StyleStrategy = 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, "setFontStyleStrategy(self, 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, "fontStyleHint(self) -> 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, "fontStyleStrategy(self) -> 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, "setFontKerning(self, 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, "fontKerning(self) -> 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, "setFontHintingPreference(self, 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, "fontHintingPreference(self) -> 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, "fontStretch(self) -> 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, "setFontStretch(self, 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, "setFontLetterSpacingType(self, 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, "fontLetterSpacingType(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QTextCharFormat(void *, const sipTypeDef *);}
static void *cast_QTextCharFormat(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextCharFormat *sipCpp = reinterpret_cast< ::QTextCharFormat *>(sipCppV);

    if (targetType == sipType_QTextFormat)
        return static_cast< ::QTextFormat *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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[] = {{303, 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), 290},
    {sipName_AlignBottom, static_cast<int>( ::QTextCharFormat::AlignBottom), 290},
    {sipName_AlignMiddle, static_cast<int>( ::QTextCharFormat::AlignMiddle), 290},
    {sipName_AlignNormal, static_cast<int>( ::QTextCharFormat::AlignNormal), 290},
    {sipName_AlignSubScript, static_cast<int>( ::QTextCharFormat::AlignSubScript), 290},
    {sipName_AlignSuperScript, static_cast<int>( ::QTextCharFormat::AlignSuperScript), 290},
    {sipName_AlignTop, static_cast<int>( ::QTextCharFormat::AlignTop), 290},
    {sipName_DashDotDotLine, static_cast<int>( ::QTextCharFormat::DashDotDotLine), 289},
    {sipName_DashDotLine, static_cast<int>( ::QTextCharFormat::DashDotLine), 289},
    {sipName_DashUnderline, static_cast<int>( ::QTextCharFormat::DashUnderline), 289},
    {sipName_DotLine, static_cast<int>( ::QTextCharFormat::DotLine), 289},
    {sipName_FontPropertiesAll, static_cast<int>( ::QTextCharFormat::FontPropertiesAll), 288},
    {sipName_FontPropertiesSpecifiedOnly, static_cast<int>( ::QTextCharFormat::FontPropertiesSpecifiedOnly), 288},
    {sipName_NoUnderline, static_cast<int>( ::QTextCharFormat::NoUnderline), 289},
    {sipName_SingleUnderline, static_cast<int>( ::QTextCharFormat::SingleUnderline), 289},
    {sipName_SpellCheckUnderline, static_cast<int>( ::QTextCharFormat::SpellCheckUnderline), 289},
    {sipName_WaveUnderline, static_cast<int>( ::QTextCharFormat::WaveUnderline), 289},
};

PyDoc_STRVAR(doc_QTextCharFormat, "\1QTextCharFormat()\n"
    "QTextCharFormat(QTextCharFormat)");


static pyqt5ClassPluginDef plugin_QTextCharFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextCharFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextCharFormat,
        {0},
        &plugin_QTextCharFormat
    },
    {
        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
};

#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 46914 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 46918 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QTextFormat_PageBreakFlags___hash__(PyObject *);}
static long slot_QTextFormat_PageBreakFlags___hash__(PyObject *sipSelf)
{
     ::QTextFormat::PageBreakFlags *sipCpp = reinterpret_cast< ::QTextFormat::PageBreakFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat_PageBreakFlags));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QTextFormat::PageBreakFlags::Int();
#line 46936 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextFormat::PageBreakFlags::Int() != 0);
#line 46961 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextFormat::PageBreakFlags::Int() != a0->operator QTextFormat::PageBreakFlags::Int());
#line 46991 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextFormat::PageBreakFlags::Int() == a0->operator QTextFormat::PageBreakFlags::Int());
#line 47027 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QTextFormat::PageBreakFlags(*sipCpp ^ a0);
#line 47066 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTextFormat_PageBreakFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QTextFormat::PageBreakFlags(*sipCpp | a0);
#line 47138 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTextFormat_PageBreakFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QTextFormat::PageBreakFlags();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QTextFormat::PageBreakFlags(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 47406 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextFormat_PageBreakFlags[] = {
    {(void *)slot_QTextFormat_PageBreakFlags___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___xor__, xor_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___ior__, ior_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___or__, or_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___iand__, iand_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___and__, and_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___invert__, invert_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTextFormat_PageBreakFlags, "\1QTextFormat.PageBreakFlags()\n"
    "QTextFormat.PageBreakFlags(Union[QTextFormat.PageBreakFlags, QTextFormat.PageBreakFlag])\n"
    "QTextFormat.PageBreakFlags(QTextFormat.PageBreakFlags)");


static pyqt5ClassPluginDef plugin_QTextFormat_PageBreakFlags = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextFormat_PageBreakFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextFormat__PageBreakFlags,
        {0},
        &plugin_QTextFormat_PageBreakFlags
    },
    {
        sipNameNr_PageBreakFlags,
        {303, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextFormat_PageBreakFlags,
    -1,
    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,
    0,
    convertTo_QTextFormat_PageBreakFlags,
    0,
    0,
    0,
    0,
    0
};

#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47492 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 47496 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47499 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 47502 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 47505 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47508 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47511 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47514 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47517 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47520 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47523 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 47526 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 47529 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47532 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 47535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 47538 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 47541 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextFormat_merge, "merge(self, 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, "isValid(self) -> 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, "type(self) -> 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, "objectIndex(self) -> 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, "setObjectIndex(self, 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, "property(self, int) -> Any");

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, "setProperty(self, int, Any)\n"
    "setProperty(self, int, Iterable[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, "clearProperty(self, 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, "hasProperty(self, 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, "boolProperty(self, 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, "intProperty(self, 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, "doubleProperty(self, 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, "stringProperty(self, 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, "colorProperty(self, 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, "penProperty(self, 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, "brushProperty(self, 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, "lengthProperty(self, 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, "lengthVectorProperty(self, int) -> object");

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, "properties(self) -> Dict[int, Any]");

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, "objectType(self) -> 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, "isCharFormat(self) -> 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, "isBlockFormat(self) -> 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, "isListFormat(self) -> 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, "isFrameFormat(self) -> 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, "isImageFormat(self) -> 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, "isTableFormat(self) -> 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, "toBlockFormat(self) -> 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, "toCharFormat(self) -> 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, "toListFormat(self) -> 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, "toTableFormat(self) -> 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, "toFrameFormat(self) -> 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, "toImageFormat(self) -> 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, "setLayoutDirection(self, 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, "layoutDirection(self) -> 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, "setBackground(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "background(self) -> 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, "clearBackground(self)");

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, "setForeground(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "foreground(self) -> 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, "clearForeground(self)");

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, "setObjectType(self, 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, "propertyCount(self) -> 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, "isTableCellFormat(self) -> 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, "toTableCellFormat(self) -> 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, "swap(self, 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, "isEmpty(self) -> 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);
}


/* 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 (sipIsOwnedByPython(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 183 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
        if (a0->canConvert<QTextFormat>())
            sipCpp = new QTextFormat(a0->value<QTextFormat>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 49019 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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), 308},
    {sipName_AnchorName, static_cast<int>( ::QTextFormat::AnchorName), 308},
    {sipName_BackgroundBrush, static_cast<int>( ::QTextFormat::BackgroundBrush), 308},
    {sipName_BackgroundImageUrl, static_cast<int>( ::QTextFormat::BackgroundImageUrl), 308},
    {sipName_BlockAlignment, static_cast<int>( ::QTextFormat::BlockAlignment), 308},
    {sipName_BlockBottomMargin, static_cast<int>( ::QTextFormat::BlockBottomMargin), 308},
    {sipName_BlockFormat, static_cast<int>( ::QTextFormat::BlockFormat), 304},
    {sipName_BlockIndent, static_cast<int>( ::QTextFormat::BlockIndent), 308},
    {sipName_BlockLeftMargin, static_cast<int>( ::QTextFormat::BlockLeftMargin), 308},
    {sipName_BlockNonBreakableLines, static_cast<int>( ::QTextFormat::BlockNonBreakableLines), 308},
    {sipName_BlockRightMargin, static_cast<int>( ::QTextFormat::BlockRightMargin), 308},
    {sipName_BlockTopMargin, static_cast<int>( ::QTextFormat::BlockTopMargin), 308},
    {sipName_BlockTrailingHorizontalRulerWidth, static_cast<int>( ::QTextFormat::BlockTrailingHorizontalRulerWidth), 308},
    {sipName_CharFormat, static_cast<int>( ::QTextFormat::CharFormat), 304},
    {sipName_CssFloat, static_cast<int>( ::QTextFormat::CssFloat), 308},
    {sipName_FirstFontProperty, static_cast<int>( ::QTextFormat::FirstFontProperty), 308},
    {sipName_FontCapitalization, static_cast<int>( ::QTextFormat::FontCapitalization), 308},
    {sipName_FontFamily, static_cast<int>( ::QTextFormat::FontFamily), 308},
    {sipName_FontFixedPitch, static_cast<int>( ::QTextFormat::FontFixedPitch), 308},
    {sipName_FontHintingPreference, static_cast<int>( ::QTextFormat::FontHintingPreference), 308},
    {sipName_FontItalic, static_cast<int>( ::QTextFormat::FontItalic), 308},
    {sipName_FontKerning, static_cast<int>( ::QTextFormat::FontKerning), 308},
    {sipName_FontLetterSpacing, static_cast<int>( ::QTextFormat::FontLetterSpacing), 308},
    {sipName_FontLetterSpacingType, static_cast<int>( ::QTextFormat::FontLetterSpacingType), 308},
    {sipName_FontOverline, static_cast<int>( ::QTextFormat::FontOverline), 308},
    {sipName_FontPixelSize, static_cast<int>( ::QTextFormat::FontPixelSize), 308},
    {sipName_FontPointSize, static_cast<int>( ::QTextFormat::FontPointSize), 308},
    {sipName_FontSizeAdjustment, static_cast<int>( ::QTextFormat::FontSizeAdjustment), 308},
    {sipName_FontSizeIncrement, static_cast<int>( ::QTextFormat::FontSizeIncrement), 308},
    {sipName_FontStretch, static_cast<int>( ::QTextFormat::FontStretch), 308},
    {sipName_FontStrikeOut, static_cast<int>( ::QTextFormat::FontStrikeOut), 308},
    {sipName_FontStyleHint, static_cast<int>( ::QTextFormat::FontStyleHint), 308},
    {sipName_FontStyleStrategy, static_cast<int>( ::QTextFormat::FontStyleStrategy), 308},
    {sipName_FontUnderline, static_cast<int>( ::QTextFormat::FontUnderline), 308},
    {sipName_FontWeight, static_cast<int>( ::QTextFormat::FontWeight), 308},
    {sipName_FontWordSpacing, static_cast<int>( ::QTextFormat::FontWordSpacing), 308},
    {sipName_ForegroundBrush, static_cast<int>( ::QTextFormat::ForegroundBrush), 308},
    {sipName_FrameBorder, static_cast<int>( ::QTextFormat::FrameBorder), 308},
    {sipName_FrameBorderBrush, static_cast<int>( ::QTextFormat::FrameBorderBrush), 308},
    {sipName_FrameBorderStyle, static_cast<int>( ::QTextFormat::FrameBorderStyle), 308},
    {sipName_FrameBottomMargin, static_cast<int>( ::QTextFormat::FrameBottomMargin), 308},
    {sipName_FrameFormat, static_cast<int>( ::QTextFormat::FrameFormat), 304},
    {sipName_FrameHeight, static_cast<int>( ::QTextFormat::FrameHeight), 308},
    {sipName_FrameLeftMargin, static_cast<int>( ::QTextFormat::FrameLeftMargin), 308},
    {sipName_FrameMargin, static_cast<int>( ::QTextFormat::FrameMargin), 308},
    {sipName_FramePadding, static_cast<int>( ::QTextFormat::FramePadding), 308},
    {sipName_FrameRightMargin, static_cast<int>( ::QTextFormat::FrameRightMargin), 308},
    {sipName_FrameTopMargin, static_cast<int>( ::QTextFormat::FrameTopMargin), 308},
    {sipName_FrameWidth, static_cast<int>( ::QTextFormat::FrameWidth), 308},
    {sipName_FullWidthSelection, static_cast<int>( ::QTextFormat::FullWidthSelection), 308},
    {sipName_ImageHeight, static_cast<int>( ::QTextFormat::ImageHeight), 308},
    {sipName_ImageName, static_cast<int>( ::QTextFormat::ImageName), 308},
    {sipName_ImageObject, static_cast<int>( ::QTextFormat::ImageObject), 305},
    {sipName_ImageWidth, static_cast<int>( ::QTextFormat::ImageWidth), 308},
    {sipName_InvalidFormat, static_cast<int>( ::QTextFormat::InvalidFormat), 304},
    {sipName_IsAnchor, static_cast<int>( ::QTextFormat::IsAnchor), 308},
    {sipName_LastFontProperty, static_cast<int>( ::QTextFormat::LastFontProperty), 308},
    {sipName_LayoutDirection, static_cast<int>( ::QTextFormat::LayoutDirection), 308},
    {sipName_LineHeight, static_cast<int>( ::QTextFormat::LineHeight), 308},
    {sipName_LineHeightType, static_cast<int>( ::QTextFormat::LineHeightType), 308},
    {sipName_ListFormat, static_cast<int>( ::QTextFormat::ListFormat), 304},
    {sipName_ListIndent, static_cast<int>( ::QTextFormat::ListIndent), 308},
    {sipName_ListNumberPrefix, static_cast<int>( ::QTextFormat::ListNumberPrefix), 308},
    {sipName_ListNumberSuffix, static_cast<int>( ::QTextFormat::ListNumberSuffix), 308},
    {sipName_ListStyle, static_cast<int>( ::QTextFormat::ListStyle), 308},
    {sipName_NoObject, static_cast<int>( ::QTextFormat::NoObject), 305},
    {sipName_ObjectIndex, static_cast<int>( ::QTextFormat::ObjectIndex), 308},
    {sipName_ObjectType, static_cast<int>( ::QTextFormat::ObjectType), 308},
    {sipName_OutlinePen, static_cast<int>( ::QTextFormat::OutlinePen), 308},
    {sipName_PageBreakPolicy, static_cast<int>( ::QTextFormat::PageBreakPolicy), 308},
    {sipName_PageBreak_AlwaysAfter, static_cast<int>( ::QTextFormat::PageBreak_AlwaysAfter), 306},
    {sipName_PageBreak_AlwaysBefore, static_cast<int>( ::QTextFormat::PageBreak_AlwaysBefore), 306},
    {sipName_PageBreak_Auto, static_cast<int>( ::QTextFormat::PageBreak_Auto), 306},
    {sipName_TabPositions, static_cast<int>( ::QTextFormat::TabPositions), 308},
    {sipName_TableCellBottomPadding, static_cast<int>( ::QTextFormat::TableCellBottomPadding), 308},
    {sipName_TableCellColumnSpan, static_cast<int>( ::QTextFormat::TableCellColumnSpan), 308},
    {sipName_TableCellLeftPadding, static_cast<int>( ::QTextFormat::TableCellLeftPadding), 308},
    {sipName_TableCellObject, static_cast<int>( ::QTextFormat::TableCellObject), 305},
    {sipName_TableCellPadding, static_cast<int>( ::QTextFormat::TableCellPadding), 308},
    {sipName_TableCellRightPadding, static_cast<int>( ::QTextFormat::TableCellRightPadding), 308},
    {sipName_TableCellRowSpan, static_cast<int>( ::QTextFormat::TableCellRowSpan), 308},
    {sipName_TableCellSpacing, static_cast<int>( ::QTextFormat::TableCellSpacing), 308},
    {sipName_TableCellTopPadding, static_cast<int>( ::QTextFormat::TableCellTopPadding), 308},
    {sipName_TableColumnWidthConstraints, static_cast<int>( ::QTextFormat::TableColumnWidthConstraints), 308},
    {sipName_TableColumns, static_cast<int>( ::QTextFormat::TableColumns), 308},
    {sipName_TableFormat, static_cast<int>( ::QTextFormat::TableFormat), 304},
    {sipName_TableHeaderRowCount, static_cast<int>( ::QTextFormat::TableHeaderRowCount), 308},
    {sipName_TableObject, static_cast<int>( ::QTextFormat::TableObject), 305},
    {sipName_TextIndent, static_cast<int>( ::QTextFormat::TextIndent), 308},
    {sipName_TextOutline, static_cast<int>( ::QTextFormat::TextOutline), 308},
    {sipName_TextToolTip, static_cast<int>( ::QTextFormat::TextToolTip), 308},
    {sipName_TextUnderlineColor, static_cast<int>( ::QTextFormat::TextUnderlineColor), 308},
    {sipName_TextUnderlineStyle, static_cast<int>( ::QTextFormat::TextUnderlineStyle), 308},
    {sipName_TextVerticalAlignment, static_cast<int>( ::QTextFormat::TextVerticalAlignment), 308},
    {sipName_UserFormat, static_cast<int>( ::QTextFormat::UserFormat), 304},
    {sipName_UserObject, static_cast<int>( ::QTextFormat::UserObject), 305},
    {sipName_UserProperty, static_cast<int>( ::QTextFormat::UserProperty), 308},
};

PyDoc_STRVAR(doc_QTextFormat, "\1QTextFormat()\n"
    "QTextFormat(int)\n"
    "QTextFormat(QTextFormat)\n"
    "QTextFormat(Any)");


static pyqt5ClassPluginDef plugin_QTextFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextFormat,
        {0},
        &plugin_QTextFormat
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 49264 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 49268 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextLength_type, "type(self) -> 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, "value(self, 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, "rawValue(self) -> 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);
}


/* 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 (sipIsOwnedByPython(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 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
        if (a0->canConvert<QTextLength>())
            sipCpp = new QTextLength(a0->value<QTextLength>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 49499 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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), 324},
    {sipName_PercentageLength, static_cast<int>( ::QTextLength::PercentageLength), 324},
    {sipName_VariableLength, static_cast<int>( ::QTextLength::VariableLength), 324},
};

PyDoc_STRVAR(doc_QTextLength, "\1QTextLength()\n"
    "QTextLength(QTextLength.Type, float)\n"
    "QTextLength(Any)\n"
    "QTextLength(QTextLength)");


static pyqt5ClassPluginDef plugin_QTextLength = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextLength = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextLength,
        {0},
        &plugin_QTextLength
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocumentwriter.sip"
#include <qtextdocumentwriter.h>
#line 49618 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 49622 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 49625 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 49628 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 49631 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 49634 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 49637 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocumentfragment.sip"
#include <qtextdocumentfragment.h>
#line 49640 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextDocumentWriter_setFormat, "setFormat(self, Union[QByteArray, bytes, bytearray])");

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, "format(self) -> 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, "setDevice(self, 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, "device(self) -> 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, "setFileName(self, 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, "fileName(self) -> 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, "write(self, QTextDocument) -> bool\n"
    "write(self, 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, "setCodec(self, 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, "codec(self) -> 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, "supportedDocumentFormats() -> List[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;
}


/* 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 (sipIsOwnedByPython(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, Union[QByteArray, bytes, bytearray])\n"
    "QTextDocumentWriter(str, format: Union[QByteArray, bytes, bytearray] = QByteArray())");


static pyqt5ClassPluginDef plugin_QTextDocumentWriter = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextDocumentWriter = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextDocumentWriter,
        {0},
        &plugin_QTextDocumentWriter
    },
    {
        sipNameNr_QTextDocumentWriter,
        {0, 0, 1},
        10, methods_QTextDocumentWriter,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextDocumentWriter,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocumentfragment.sip"
#include <qtextdocumentfragment.h>
#line 50095 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 50099 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 50102 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 50105 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 50108 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextDocumentFragment_isEmpty, "isEmpty(self) -> 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, "toPlainText(self) -> 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, "toHtml(self, encoding: Union[QByteArray, bytes, bytearray] = 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, "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, "fromHtml(str) -> QTextDocumentFragment\n"
    "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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QTextDocumentFragment = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextDocumentFragment = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextDocumentFragment,
        {0},
        &plugin_QTextDocumentFragment
    },
    {
        sipNameNr_QTextDocumentFragment,
        {0, 0, 1},
        5, methods_QTextDocumentFragment,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextDocumentFragment,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 50445 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 50449 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QTextDocument_FindFlags___hash__(PyObject *);}
static long slot_QTextDocument_FindFlags___hash__(PyObject *sipSelf)
{
     ::QTextDocument::FindFlags *sipCpp = reinterpret_cast< ::QTextDocument::FindFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextDocument_FindFlags));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QTextDocument::FindFlags::Int();
#line 50467 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextDocument::FindFlags::Int() != 0);
#line 50492 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextDocument::FindFlags::Int() != a0->operator QTextDocument::FindFlags::Int());
#line 50522 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextDocument::FindFlags::Int() == a0->operator QTextDocument::FindFlags::Int());
#line 50558 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QTextDocument::FindFlags(*sipCpp ^ a0);
#line 50597 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTextDocument_FindFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QTextDocument::FindFlags(*sipCpp | a0);
#line 50669 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTextDocument_FindFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QTextDocument::FindFlags();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QTextDocument::FindFlags(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 50937 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextDocument_FindFlags[] = {
    {(void *)slot_QTextDocument_FindFlags___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QTextDocument_FindFlags___xor__, xor_slot},
    {(void *)slot_QTextDocument_FindFlags___ior__, ior_slot},
    {(void *)slot_QTextDocument_FindFlags___or__, or_slot},
    {(void *)slot_QTextDocument_FindFlags___iand__, iand_slot},
    {(void *)slot_QTextDocument_FindFlags___and__, and_slot},
    {(void *)slot_QTextDocument_FindFlags___invert__, invert_slot},
    {(void *)slot_QTextDocument_FindFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTextDocument_FindFlags, "\1QTextDocument.FindFlags()\n"
    "QTextDocument.FindFlags(Union[QTextDocument.FindFlags, QTextDocument.FindFlag])\n"
    "QTextDocument.FindFlags(QTextDocument.FindFlags)");


static pyqt5ClassPluginDef plugin_QTextDocument_FindFlags = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextDocument_FindFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextDocument__FindFlags,
        {0},
        &plugin_QTextDocument_FindFlags
    },
    {
        sipNameNr_FindFlags,
        {295, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextDocument_FindFlags,
    -1,
    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,
    0,
    convertTo_QTextDocument_FindFlags,
    0,
    0,
    0,
    0,
    0
};

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 51023 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 51027 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 51030 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 96 "sip/QtCore/qurl.sip"
#include <qurl.h>
#line 51033 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 51036 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 51039 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 51042 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 51045 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 51048 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 51051 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 51054 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 51057 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 51060 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 51063 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 51066 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 51069 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 51072 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 51075 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 51078 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 51081 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 51084 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 51087 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 51090 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 51093 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 51096 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 51099 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 51102 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 51105 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 51108 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 51111 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 51114 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 51117 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 51120 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
     ::QVariant loadResource(int,const  ::QUrl&);
     ::QTextObject* createObject(const  ::QTextFormat&);
    void clear();
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQTextDocument::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextDocument);

    return  ::QTextDocument::metaObject();
}

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));
}

 ::QVariant sipQTextDocument::loadResource(int a0,const  ::QUrl& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_loadResource);

    if (!sipMeth)
        return  ::QTextDocument::loadResource(a0,a1);

    extern  ::QVariant sipVH_QtGui_105(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const  ::QUrl&);

    return sipVH_QtGui_105(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

 ::QTextObject* sipQTextDocument::createObject(const  ::QTextFormat& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_createObject);

    if (!sipMeth)
        return  ::QTextDocument::createObject(a0);

    extern  ::QTextObject* sipVH_QtGui_104(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QTextFormat&);

    return sipVH_QtGui_104(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextDocument::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_clear);

    if (!sipMeth)
    {
         ::QTextDocument::clear();
        return;
    }

    extern void sipVH_QtGui_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtGui_39(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQTextDocument::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QTextDocument::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQTextDocument::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QTextDocument::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQTextDocument::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QTextDocument::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextDocument::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QTextDocument::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextDocument::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QTextDocument::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextDocument::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QTextDocument::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQTextDocument::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QTextDocument::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 51483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 51543 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "clone(self, parent: QObject = 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, "isEmpty(self) -> 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, "clear(self)");

extern "C" {static PyObject *meth_QTextDocument_clear(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "setUndoRedoEnabled(self, 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, "isUndoRedoEnabled(self) -> 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, "isUndoAvailable(self) -> 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, "isRedoAvailable(self) -> 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, "setDocumentLayout(self, 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, "documentLayout(self) -> 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, "setMetaInformation(self, 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, "metaInformation(self, 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, "toHtml(self, encoding: Union[QByteArray, bytes, bytearray] = 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, "setHtml(self, 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, "toPlainText(self) -> 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, "setPlainText(self, 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, "find(self, str, position: int = 0, options: QTextDocument.FindFlags = 0) -> QTextCursor\n"
    "find(self, QRegExp, position: int = 0, options: QTextDocument.FindFlags = 0) -> QTextCursor\n"
    "find(self, QRegularExpression, position: int = 0, options: QTextDocument.FindFlags = 0) -> QTextCursor\n"
    "find(self, str, QTextCursor, options: QTextDocument.FindFlags = 0) -> QTextCursor\n"
    "find(self, QRegExp, QTextCursor, options: QTextDocument.FindFlags = 0) -> QTextCursor\n"
    "find(self, QRegularExpression, QTextCursor, options: QTextDocument.FindFlags = 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  ::QRegularExpression* 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_QRegularExpression, &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);
        }
    }

    {
        const  ::QRegularExpression* 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_QRegularExpression, &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, "rootFrame(self) -> 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, "object(self, 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, "objectForFormat(self, 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, "findBlock(self, 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, "begin(self) -> 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, "end(self) -> 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, "setPageSize(self, 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, "pageSize(self) -> 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, "setDefaultFont(self, 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, "defaultFont(self) -> 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, "pageCount(self) -> 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, "isModified(self) -> 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_, "print_(self, 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, "resource(self, int, QUrl) -> Any");

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, "addResource(self, int, QUrl, Any)");

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, "allFormats(self) -> object");

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, "markContentsDirty(self, 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, "setUseDesignMetrics(self, 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, "useDesignMetrics(self) -> 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, "undo(self)\n"
    "undo(self, 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, "redo(self)\n"
    "redo(self, 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, "setModified(self, on: bool = 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, "createObject(self, 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 || sipIsDerivedClass((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, "loadResource(self, int, QUrl) -> Any");

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 || sipIsDerivedClass((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, "drawContents(self, QPainter, rect: QRectF = 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, "setTextWidth(self, 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, "textWidth(self) -> 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, "idealWidth(self) -> 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, "adjustSize(self)");

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, "size(self) -> 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, "blockCount(self) -> 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, "setDefaultStyleSheet(self, 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, "defaultStyleSheet(self) -> 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, "maximumBlockCount(self) -> 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, "setMaximumBlockCount(self, 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, "defaultTextOption(self) -> 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, "setDefaultTextOption(self, 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, "revision(self) -> 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, "findBlockByNumber(self, 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, "findBlockByLineNumber(self, 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, "firstBlock(self) -> 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, "lastBlock(self) -> 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, "indentWidth(self) -> 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, "setIndentWidth(self, 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, "characterAt(self, 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, "documentMargin(self) -> 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, "setDocumentMargin(self, 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, "lineCount(self) -> 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, "characterCount(self) -> 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, "availableUndoSteps(self) -> 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, "availableRedoSteps(self) -> 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, "clearUndoRedoStacks(self, stacks: QTextDocument.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, "defaultCursorMoveStyle(self) -> 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, "setDefaultCursorMoveStyle(self, 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, "baseUrl(self) -> 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, "setBaseUrl(self, 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;
}


PyDoc_STRVAR(doc_QTextDocument_toRawText, "toRawText(self) -> str");

extern "C" {static PyObject *meth_QTextDocument_toRawText(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_toRawText(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->toRawText());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_toRawText, doc_QTextDocument_toRawText);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QTextDocument(void *, const sipTypeDef *);}
static void *cast_QTextDocument(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTextDocument *sipCpp = reinterpret_cast< ::QTextDocument *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTextDocument *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTextDocument(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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_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_toRawText), meth_QTextDocument_toRawText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_toRawText)},
    {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), 298},
    {sipName_DocumentUrl, static_cast<int>( ::QTextDocument::DocumentUrl), 298},
    {sipName_FindBackward, static_cast<int>( ::QTextDocument::FindBackward), 296},
    {sipName_FindCaseSensitively, static_cast<int>( ::QTextDocument::FindCaseSensitively), 296},
    {sipName_FindWholeWords, static_cast<int>( ::QTextDocument::FindWholeWords), 296},
    {sipName_HtmlResource, static_cast<int>( ::QTextDocument::HtmlResource), 299},
    {sipName_ImageResource, static_cast<int>( ::QTextDocument::ImageResource), 299},
    {sipName_RedoStack, static_cast<int>( ::QTextDocument::RedoStack), 300},
    {sipName_StyleSheetResource, static_cast<int>( ::QTextDocument::StyleSheetResource), 299},
    {sipName_UndoAndRedoStacks, static_cast<int>( ::QTextDocument::UndoAndRedoStacks), 300},
    {sipName_UndoStack, static_cast<int>( ::QTextDocument::UndoStack), 300},
    {sipName_UserResource, static_cast<int>( ::QTextDocument::UserResource), 299},
};

PyDoc_STRVAR(doc_QTextDocument, "\1QTextDocument(parent: QObject = None)\n"
    "QTextDocument(str, parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QTextDocument[] = {
    {"baseUrlChanged(QUrl)", "\1baseUrlChanged(self, QUrl)", 0, 0},
    {"documentLayoutChanged()", "\1documentLayoutChanged(self)", 0, 0},
    {"undoCommandAdded()", "\1undoCommandAdded(self)", 0, 0},
    {"undoAvailable(bool)", "\1undoAvailable(self, bool)", 0, 0},
    {"redoAvailable(bool)", "\1redoAvailable(self, bool)", 0, 0},
    {"modificationChanged(bool)", "\1modificationChanged(self, bool)", 0, 0},
    {"cursorPositionChanged(QTextCursor)", "\1cursorPositionChanged(self, QTextCursor)", 0, 0},
    {"contentsChanged()", "\1contentsChanged(self)", 0, 0},
    {"contentsChange(int,int,int)", "\1contentsChange(self, int, int, int)", 0, 0},
    {"blockCountChanged(int)", "\1blockCountChanged(self, int)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QTextDocument = {
    & ::QTextDocument::staticMetaObject,
    0,
    signals_QTextDocument,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextDocument = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextDocument,
        {0},
        &plugin_QTextDocument
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 54315 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 54319 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 54322 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_Qt_convertFromPlainText, "convertFromPlainText(str, mode: Qt.WhiteSpaceMode = 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, "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)}
};


static pyqt5ClassPluginDef plugin_Qt = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_Qt = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_NAMESPACE,
        sipNameNr_Qt,
        {0},
        &plugin_Qt
    },
    {
        -1,
        {42, 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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 54456 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 54460 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 54463 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 54466 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 54469 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 54472 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 54475 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 54478 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocumentfragment.sip"
#include <qtextdocumentfragment.h>
#line 54481 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 50 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 54484 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 54487 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlist.sip"
#include <qtextlist.h>
#line 54490 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 54493 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 54496 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 54499 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextCursor_isNull, "isNull(self) -> 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, "setPosition(self, int, mode: QTextCursor.MoveMode = 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, "position(self) -> 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, "anchor(self) -> 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, "insertText(self, str)\n"
    "insertText(self, 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, "movePosition(self, QTextCursor.MoveOperation, mode: QTextCursor.MoveMode = QTextCursor.MoveAnchor, n: int = 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, "deleteChar(self)");

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, "deletePreviousChar(self)");

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, "select(self, 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, "hasSelection(self) -> 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, "hasComplexSelection(self) -> 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, "removeSelectedText(self)");

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, "clearSelection(self)");

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, "selectionStart(self) -> 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, "selectionEnd(self) -> 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, "selectedText(self) -> 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, "selection(self) -> 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, "selectedTableCells(self) -> Tuple[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, "block(self) -> 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, "charFormat(self) -> 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, "setCharFormat(self, 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, "mergeCharFormat(self, 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, "blockFormat(self) -> 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, "setBlockFormat(self, 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, "mergeBlockFormat(self, 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, "blockCharFormat(self) -> 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, "setBlockCharFormat(self, 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, "mergeBlockCharFormat(self, 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, "atBlockStart(self) -> 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, "atBlockEnd(self) -> 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, "atStart(self) -> 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, "atEnd(self) -> 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, "insertBlock(self)\n"
    "insertBlock(self, QTextBlockFormat)\n"
    "insertBlock(self, 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, "insertList(self, QTextListFormat) -> QTextList\n"
    "insertList(self, 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, "createList(self, QTextListFormat) -> QTextList\n"
    "createList(self, 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, "currentList(self) -> 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, "insertTable(self, int, int, QTextTableFormat) -> QTextTable\n"
    "insertTable(self, 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, "currentTable(self) -> 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, "insertFrame(self, 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, "currentFrame(self) -> 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, "insertFragment(self, 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, "insertHtml(self, 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, "insertImage(self, QTextImageFormat)\n"
    "insertImage(self, QTextImageFormat, QTextFrameFormat.Position)\n"
    "insertImage(self, str)\n"
    "insertImage(self, QImage, name: str = '')");

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, "beginEditBlock(self)");

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, "joinPreviousEditBlock(self)");

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, "endEditBlock(self)");

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, "blockNumber(self) -> 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, "columnNumber(self) -> 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, "isCopyOf(self, 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, "visualNavigation(self) -> 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, "setVisualNavigation(self, 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, "document(self) -> 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, "positionInBlock(self) -> 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, "setVerticalMovementX(self, 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, "verticalMovementX(self) -> 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, "setKeepPositionOnInsert(self, 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, "keepPositionOnInsert(self) -> 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, "swap(self, 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);
}


/* 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 (sipIsOwnedByPython(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), 294},
    {sipName_Document, static_cast<int>( ::QTextCursor::Document), 294},
    {sipName_Down, static_cast<int>( ::QTextCursor::Down), 293},
    {sipName_End, static_cast<int>( ::QTextCursor::End), 293},
    {sipName_EndOfBlock, static_cast<int>( ::QTextCursor::EndOfBlock), 293},
    {sipName_EndOfLine, static_cast<int>( ::QTextCursor::EndOfLine), 293},
    {sipName_EndOfWord, static_cast<int>( ::QTextCursor::EndOfWord), 293},
    {sipName_KeepAnchor, static_cast<int>( ::QTextCursor::KeepAnchor), 292},
    {sipName_Left, static_cast<int>( ::QTextCursor::Left), 293},
    {sipName_LineUnderCursor, static_cast<int>( ::QTextCursor::LineUnderCursor), 294},
    {sipName_MoveAnchor, static_cast<int>( ::QTextCursor::MoveAnchor), 292},
    {sipName_NextBlock, static_cast<int>( ::QTextCursor::NextBlock), 293},
    {sipName_NextCell, static_cast<int>( ::QTextCursor::NextCell), 293},
    {sipName_NextCharacter, static_cast<int>( ::QTextCursor::NextCharacter), 293},
    {sipName_NextRow, static_cast<int>( ::QTextCursor::NextRow), 293},
    {sipName_NextWord, static_cast<int>( ::QTextCursor::NextWord), 293},
    {sipName_NoMove, static_cast<int>( ::QTextCursor::NoMove), 293},
    {sipName_PreviousBlock, static_cast<int>( ::QTextCursor::PreviousBlock), 293},
    {sipName_PreviousCell, static_cast<int>( ::QTextCursor::PreviousCell), 293},
    {sipName_PreviousCharacter, static_cast<int>( ::QTextCursor::PreviousCharacter), 293},
    {sipName_PreviousRow, static_cast<int>( ::QTextCursor::PreviousRow), 293},
    {sipName_PreviousWord, static_cast<int>( ::QTextCursor::PreviousWord), 293},
    {sipName_Right, static_cast<int>( ::QTextCursor::Right), 293},
    {sipName_Start, static_cast<int>( ::QTextCursor::Start), 293},
    {sipName_StartOfBlock, static_cast<int>( ::QTextCursor::StartOfBlock), 293},
    {sipName_StartOfLine, static_cast<int>( ::QTextCursor::StartOfLine), 293},
    {sipName_StartOfWord, static_cast<int>( ::QTextCursor::StartOfWord), 293},
    {sipName_Up, static_cast<int>( ::QTextCursor::Up), 293},
    {sipName_WordLeft, static_cast<int>( ::QTextCursor::WordLeft), 293},
    {sipName_WordRight, static_cast<int>( ::QTextCursor::WordRight), 293},
    {sipName_WordUnderCursor, static_cast<int>( ::QTextCursor::WordUnderCursor), 294},
};

PyDoc_STRVAR(doc_QTextCursor, "\1QTextCursor()\n"
    "QTextCursor(QTextDocument)\n"
    "QTextCursor(QTextFrame)\n"
    "QTextCursor(QTextBlock)\n"
    "QTextCursor(QTextCursor)");


static pyqt5ClassPluginDef plugin_QTextCursor = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextCursor = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextCursor,
        {0},
        &plugin_QTextCursor
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsyntaxhighlighter.sip"
#include <qsyntaxhighlighter.h>
#line 56768 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 56772 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 56775 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 56778 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 257 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 56781 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 56784 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 56787 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 56790 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 56793 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 56796 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56799 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56802 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56805 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 56808 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 56811 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 56814 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 56817 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 56820 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 56823 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 56826 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 56829 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 56832 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 56835 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 highlightBlock(const  ::QString&);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQSyntaxHighlighter::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QSyntaxHighlighter);

    return  ::QSyntaxHighlighter::metaObject();
}

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::highlightBlock(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_QSyntaxHighlighter,sipName_highlightBlock);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_103(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_QtGui_103(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQSyntaxHighlighter::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QSyntaxHighlighter::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQSyntaxHighlighter::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QSyntaxHighlighter::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQSyntaxHighlighter::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QSyntaxHighlighter::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQSyntaxHighlighter::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QSyntaxHighlighter::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQSyntaxHighlighter::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QSyntaxHighlighter::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQSyntaxHighlighter::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QSyntaxHighlighter::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQSyntaxHighlighter::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QSyntaxHighlighter::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 57217 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 57277 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "setDocument(self, 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, "document(self) -> 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, "rehighlight(self)");

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, "rehighlightBlock(self, 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, "highlightBlock(self, 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, "setFormat(self, int, int, QTextCharFormat)\n"
    "setFormat(self, int, int, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "setFormat(self, 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, "format(self, 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, "previousBlockState(self) -> 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, "currentBlockState(self) -> 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, "setCurrentBlockState(self, 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, "setCurrentBlockUserData(self, 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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");
            Q_ASSERT(helper);
        }
        
        QTextDocument *td = sipCpp->document();
        
        if (td)
        {
            PyObject *py_td = helper(td, sipType_QTextDocument);
        
            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 57882 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "currentBlockUserData(self) -> 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, "currentBlock(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QSyntaxHighlighter(void *, const sipTypeDef *);}
static void *cast_QSyntaxHighlighter(void *sipCppV, const sipTypeDef *targetType)
{
     ::QSyntaxHighlighter *sipCpp = reinterpret_cast< ::QSyntaxHighlighter *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQSyntaxHighlighter *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QSyntaxHighlighter(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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)");


static pyqt5ClassPluginDef plugin_QSyntaxHighlighter = {
    & ::QSyntaxHighlighter::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QSyntaxHighlighter = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QSyntaxHighlighter,
        {0},
        &plugin_QSyntaxHighlighter
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 58122 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 58126 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QSurfaceFormat_FormatOptions___hash__(PyObject *);}
static long slot_QSurfaceFormat_FormatOptions___hash__(PyObject *sipSelf)
{
     ::QSurfaceFormat::FormatOptions *sipCpp = reinterpret_cast< ::QSurfaceFormat::FormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat_FormatOptions));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QSurfaceFormat::FormatOptions::Int();
#line 58144 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QSurfaceFormat::FormatOptions::Int() != 0);
#line 58169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QSurfaceFormat::FormatOptions::Int() != a0->operator QSurfaceFormat::FormatOptions::Int());
#line 58199 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QSurfaceFormat::FormatOptions::Int() == a0->operator QSurfaceFormat::FormatOptions::Int());
#line 58235 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QSurfaceFormat::FormatOptions(*sipCpp ^ a0);
#line 58274 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QSurfaceFormat_FormatOptions___xor__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QSurfaceFormat::FormatOptions(*sipCpp | a0);
#line 58346 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QSurfaceFormat_FormatOptions___or__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QSurfaceFormat::FormatOptions();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QSurfaceFormat::FormatOptions(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 58614 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QSurfaceFormat_FormatOptions[] = {
    {(void *)slot_QSurfaceFormat_FormatOptions___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___xor__, xor_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___ior__, ior_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___or__, or_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___iand__, iand_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___and__, and_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___invert__, invert_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QSurfaceFormat_FormatOptions, "\1QSurfaceFormat.FormatOptions()\n"
    "QSurfaceFormat.FormatOptions(Union[QSurfaceFormat.FormatOptions, QSurfaceFormat.FormatOption])\n"
    "QSurfaceFormat.FormatOptions(QSurfaceFormat.FormatOptions)");


static pyqt5ClassPluginDef plugin_QSurfaceFormat_FormatOptions = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QSurfaceFormat_FormatOptions = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QSurfaceFormat__FormatOptions,
        {0},
        &plugin_QSurfaceFormat_FormatOptions
    },
    {
        sipNameNr_FormatOptions,
        {271, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSurfaceFormat_FormatOptions,
    -1,
    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,
    0,
    convertTo_QSurfaceFormat_FormatOptions,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 58700 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 58704 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 133 "sip/QtCore/qpycore_qpair.sip"
#include <qpair.h>
#line 58707 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QSurfaceFormat_setDepthBufferSize, "setDepthBufferSize(self, 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, "depthBufferSize(self) -> 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, "setStencilBufferSize(self, 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, "stencilBufferSize(self) -> 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, "setRedBufferSize(self, 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, "redBufferSize(self) -> 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, "setGreenBufferSize(self, 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, "greenBufferSize(self) -> 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, "setBlueBufferSize(self, 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, "blueBufferSize(self) -> 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, "setAlphaBufferSize(self, 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, "alphaBufferSize(self) -> 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, "setSamples(self, 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, "samples(self) -> 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, "setSwapBehavior(self, 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, "swapBehavior(self) -> 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, "hasAlpha(self) -> 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, "setProfile(self, 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, "profile(self) -> 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, "setRenderableType(self, 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, "renderableType(self) -> 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, "setMajorVersion(self, 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, "majorVersion(self) -> 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, "setMinorVersion(self, 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, "minorVersion(self) -> 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, "setStereo(self, 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, "setOption(self, Union[QSurfaceFormat.FormatOptions, QSurfaceFormat.FormatOption])\n"
    "setOption(self, QSurfaceFormat.FormatOption, on: bool = 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, "testOption(self, Union[QSurfaceFormat.FormatOptions, QSurfaceFormat.FormatOption]) -> bool\n"
    "testOption(self, 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, "stereo(self) -> 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, "version(self) -> Tuple[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, "setVersion(self, 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, "setOptions(self, Union[QSurfaceFormat.FormatOptions, QSurfaceFormat.FormatOption])");

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, "options(self) -> 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, "swapInterval(self) -> 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, "setSwapInterval(self, 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, "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, "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);
}


/* 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 (sipIsOwnedByPython(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), 274},
    {sipName_CoreProfile, static_cast<int>( ::QSurfaceFormat::CoreProfile), 274},
    {sipName_DebugContext, static_cast<int>( ::QSurfaceFormat::DebugContext), 272},
    {sipName_DefaultRenderableType, static_cast<int>( ::QSurfaceFormat::DefaultRenderableType), 275},
    {sipName_DefaultSwapBehavior, static_cast<int>( ::QSurfaceFormat::DefaultSwapBehavior), 276},
    {sipName_DeprecatedFunctions, static_cast<int>( ::QSurfaceFormat::DeprecatedFunctions), 272},
    {sipName_DoubleBuffer, static_cast<int>( ::QSurfaceFormat::DoubleBuffer), 276},
    {sipName_NoProfile, static_cast<int>( ::QSurfaceFormat::NoProfile), 274},
    {sipName_OpenGL, static_cast<int>( ::QSurfaceFormat::OpenGL), 275},
    {sipName_OpenGLES, static_cast<int>( ::QSurfaceFormat::OpenGLES), 275},
    {sipName_OpenVG, static_cast<int>( ::QSurfaceFormat::OpenVG), 275},
    {sipName_ResetNotification, static_cast<int>( ::QSurfaceFormat::ResetNotification), 272},
    {sipName_SingleBuffer, static_cast<int>( ::QSurfaceFormat::SingleBuffer), 276},
    {sipName_StereoBuffers, static_cast<int>( ::QSurfaceFormat::StereoBuffers), 272},
    {sipName_TripleBuffer, static_cast<int>( ::QSurfaceFormat::TripleBuffer), 276},
};

PyDoc_STRVAR(doc_QSurfaceFormat, "\1QSurfaceFormat()\n"
    "QSurfaceFormat(Union[QSurfaceFormat.FormatOptions, QSurfaceFormat.FormatOption])\n"
    "QSurfaceFormat(QSurfaceFormat)");


static pyqt5ClassPluginDef plugin_QSurfaceFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QSurfaceFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QSurfaceFormat,
        {0},
        &plugin_QSurfaceFormat
    },
    {
        sipNameNr_QSurfaceFormat,
        {0, 0, 1},
        37, methods_QSurfaceFormat,
        15, enummembers_QSurfaceFormat,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSurfaceFormat,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstylehints.sip"
#include <qstylehints.h>
#line 60064 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 60068 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 60071 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 60074 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 60077 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 60080 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 60083 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 60086 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 60089 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 60092 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 60095 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 60098 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 60101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 60104 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 60107 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 60110 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 60113 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 60116 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QStyleHints_mouseDoubleClickInterval, "mouseDoubleClickInterval(self) -> 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, "startDragDistance(self) -> 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, "startDragTime(self) -> 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, "startDragVelocity(self) -> 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, "keyboardInputInterval(self) -> 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, "keyboardAutoRepeatRate(self) -> 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, "cursorFlashTime(self) -> 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, "showIsFullScreen(self) -> 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, "passwordMaskDelay(self) -> 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, "fontSmoothingGamma(self) -> 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, "useRtlExtensions(self) -> 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, "passwordMaskCharacter(self) -> 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, "setFocusOnTouchRelease(self) -> 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, "mousePressAndHoldInterval(self) -> 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;
}


PyDoc_STRVAR(doc_QStyleHints_tabFocusBehavior, "tabFocusBehavior(self) -> Qt.TabFocusBehavior");

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

    {
        const  ::QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
             ::Qt::TabFocusBehavior sipRes;

            sipRes = sipCpp->tabFocusBehavior();

            return sipConvertFromEnum(sipRes,sipType_Qt_TabFocusBehavior);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_tabFocusBehavior, doc_QStyleHints_tabFocusBehavior);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_singleClickActivation, "singleClickActivation(self) -> bool");

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

    {
        const  ::QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->singleClickActivation();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_singleClickActivation, doc_QStyleHints_singleClickActivation);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_showIsMaximized, "showIsMaximized(self) -> bool");

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

    {
        const  ::QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showIsMaximized();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_showIsMaximized, doc_QStyleHints_showIsMaximized);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_useHoverEffects, "useHoverEffects(self) -> bool");

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

    {
        const  ::QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->useHoverEffects();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_useHoverEffects, doc_QStyleHints_useHoverEffects);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_setUseHoverEffects, "setUseHoverEffects(self, bool)");

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

    {
        bool a0;
         ::QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStyleHints, &sipCpp, &a0))
        {
            sipCpp->setUseHoverEffects(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_setUseHoverEffects, doc_QStyleHints_setUseHoverEffects);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_wheelScrollLines, "wheelScrollLines(self) -> int");

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

    {
        const  ::QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->wheelScrollLines();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_wheelScrollLines, doc_QStyleHints_wheelScrollLines);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QStyleHints(void *, const sipTypeDef *);}
static void *cast_QStyleHints(void *sipCppV, const sipTypeDef *targetType)
{
     ::QStyleHints *sipCpp = reinterpret_cast< ::QStyleHints *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_QStyleHints(sipGetAddress(sipSelf), 0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QStyleHints[] = {{25, 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_setUseHoverEffects), meth_QStyleHints_setUseHoverEffects, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_setUseHoverEffects)},
    {SIP_MLNAME_CAST(sipName_showIsFullScreen), meth_QStyleHints_showIsFullScreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_showIsFullScreen)},
    {SIP_MLNAME_CAST(sipName_showIsMaximized), meth_QStyleHints_showIsMaximized, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_showIsMaximized)},
    {SIP_MLNAME_CAST(sipName_singleClickActivation), meth_QStyleHints_singleClickActivation, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_singleClickActivation)},
    {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_tabFocusBehavior), meth_QStyleHints_tabFocusBehavior, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_tabFocusBehavior)},
    {SIP_MLNAME_CAST(sipName_useHoverEffects), meth_QStyleHints_useHoverEffects, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_useHoverEffects)},
    {SIP_MLNAME_CAST(sipName_useRtlExtensions), meth_QStyleHints_useRtlExtensions, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_useRtlExtensions)},
    {SIP_MLNAME_CAST(sipName_wheelScrollLines), meth_QStyleHints_wheelScrollLines, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_wheelScrollLines)}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QStyleHints[] = {
    {"wheelScrollLinesChanged(int)", "\1wheelScrollLinesChanged(self, int)", 0, 0},
    {"useHoverEffectsChanged(bool)", "\1useHoverEffectsChanged(self, bool)", 0, 0},
    {"tabFocusBehaviorChanged(Qt::TabFocusBehavior)", "\1tabFocusBehaviorChanged(self, Qt.TabFocusBehavior)", 0, 0},
    {"mousePressAndHoldIntervalChanged(int)", "\1mousePressAndHoldIntervalChanged(self, int)", 0, 0},
    {"startDragTimeChanged(int)", "\1startDragTimeChanged(self, int)", 0, 0},
    {"startDragDistanceChanged(int)", "\1startDragDistanceChanged(self, int)", 0, 0},
    {"mouseDoubleClickIntervalChanged(int)", "\1mouseDoubleClickIntervalChanged(self, int)", 0, 0},
    {"keyboardInputIntervalChanged(int)", "\1keyboardInputIntervalChanged(self, int)", 0, 0},
    {"cursorFlashTimeChanged(int)", "\1cursorFlashTimeChanged(self, int)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QStyleHints = {
    & ::QStyleHints::staticMetaObject,
    0,
    signals_QStyleHints,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QStyleHints = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QStyleHints,
        {0},
        &plugin_QStyleHints
    },
    {
        sipNameNr_QStyleHints,
        {0, 0, 1},
        20, 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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstatictext.sip"
#include <qstatictext.h>
#line 60817 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 60821 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 60824 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 60827 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 60830 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 60833 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 60836 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QStaticText_setText, "setText(self, 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, "text(self) -> 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, "setTextFormat(self, 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, "textFormat(self) -> 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, "setTextWidth(self, 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, "textWidth(self) -> 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, "setTextOption(self, 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, "textOption(self) -> 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, "size(self) -> 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, "prepare(self, matrix: QTransform = QTransform(), font: QFont = 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, "setPerformanceHint(self, 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, "performanceHint(self) -> 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, "swap(self, 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);
}


/* 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 (sipIsOwnedByPython(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), 265},
    {sipName_ModerateCaching, static_cast<int>( ::QStaticText::ModerateCaching), 265},
};

PyDoc_STRVAR(doc_QStaticText, "\1QStaticText()\n"
    "QStaticText(str)\n"
    "QStaticText(QStaticText)");


static pyqt5ClassPluginDef plugin_QStaticText = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QStaticText = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QStaticText,
        {0},
        &plugin_QStaticText
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 61452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 61456 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 61459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 61462 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 61465 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 61468 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 61471 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 61474 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 61477 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 61480 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 61483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 61486 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 61489 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 61492 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(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_102(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QStandardItem&);

    return sipVH_QtGui_102(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_101(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDataStream&);

    sipVH_QtGui_101(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_101(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDataStream&);

    sipVH_QtGui_101(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_100(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_100(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_99(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QVariant&,int);

    sipVH_QtGui_99(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_98(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_QtGui_98(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQStandardItem::sipProtect_emitDataChanged()
{
     ::QStandardItem::emitDataChanged();
}


PyDoc_STRVAR(doc_QStandardItem_data, "data(self, role: int = Qt.UserRole+1) -> Any");

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 || sipIsDerivedClass((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, "setData(self, Any, role: int = 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 || sipIsDerivedClass((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, "text(self) -> 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, "icon(self) -> 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, "toolTip(self) -> 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, "statusTip(self) -> 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, "whatsThis(self) -> 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, "sizeHint(self) -> 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, "font(self) -> 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, "textAlignment(self) -> 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, "background(self) -> 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, "foreground(self) -> 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, "checkState(self) -> 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, "accessibleText(self) -> 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, "accessibleDescription(self) -> 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, "flags(self) -> 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, "setFlags(self, Union[Qt.ItemFlags, Qt.ItemFlag])");

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, "isEnabled(self) -> 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, "setEnabled(self, 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, "isEditable(self) -> 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, "setEditable(self, 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, "isSelectable(self) -> 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, "setSelectable(self, 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, "isCheckable(self) -> 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, "setCheckable(self, 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, "isTristate(self) -> 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, "setTristate(self, 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, "isDragEnabled(self) -> 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, "setDragEnabled(self, 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, "isDropEnabled(self) -> 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, "setDropEnabled(self, 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, "parent(self) -> 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, "row(self) -> 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, "column(self) -> 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, "index(self) -> 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, "model(self) -> 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, "rowCount(self) -> 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, "setRowCount(self, 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, "columnCount(self) -> 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, "setColumnCount(self, 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, "hasChildren(self) -> 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, "child(self, int, column: int = 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, "setChild(self, int, int, QStandardItem)\n"
    "setChild(self, 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, "insertRow(self, int, Iterable[QStandardItem])\n"
    "insertRow(self, 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, "insertRows(self, int, int)\n"
    "insertRows(self, int, Iterable[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, "insertColumn(self, int, Iterable[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, "insertColumns(self, 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, "removeRow(self, 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, "removeColumn(self, 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, "removeRows(self, 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, "removeColumns(self, 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, "takeChild(self, int, column: int = 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, "takeRow(self, int) -> List[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, "takeColumn(self, int) -> List[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, "sortChildren(self, int, order: Qt.SortOrder = 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, "clone(self) -> 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 || sipIsDerivedClass((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, "type(self) -> 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 || sipIsDerivedClass((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, "read(self, 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 || sipIsDerivedClass((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, "write(self, 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 || sipIsDerivedClass((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, "setText(self, 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, "setIcon(self, 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, "setToolTip(self, 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, "setStatusTip(self, 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, "setWhatsThis(self, 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, "setSizeHint(self, 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, "setFont(self, 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, "setTextAlignment(self, Union[Qt.Alignment, Qt.AlignmentFlag])");

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, "setBackground(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "setForeground(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "setCheckState(self, 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, "setAccessibleText(self, 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, "setAccessibleDescription(self, 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, "appendRow(self, Iterable[QStandardItem])\n"
    "appendRow(self, 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, "appendColumn(self, Iterable[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, "appendRows(self, Iterable[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, "emitDataChanged(self)");

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;
}


PyDoc_STRVAR(doc_QStandardItem_isAutoTristate, "isAutoTristate(self) -> bool");

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

    {
        const  ::QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAutoTristate();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_isAutoTristate, doc_QStandardItem_isAutoTristate);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setAutoTristate, "setAutoTristate(self, bool)");

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

    {
        bool a0;
         ::QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setAutoTristate(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setAutoTristate, doc_QStandardItem_setAutoTristate);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_isUserTristate, "isUserTristate(self) -> bool");

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

    {
        const  ::QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isUserTristate();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_isUserTristate, doc_QStandardItem_isUserTristate);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setUserTristate, "setUserTristate(self, bool)");

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

    {
        bool a0;
         ::QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setUserTristate(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setUserTristate, doc_QStandardItem_setUserTristate);

    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);
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQStandardItem *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QStandardItem(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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_isAutoTristate), meth_QStandardItem_isAutoTristate, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_isAutoTristate)},
    {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_isUserTristate), meth_QStandardItem_isUserTristate, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_isUserTristate)},
    {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_setAutoTristate), meth_QStandardItem_setAutoTristate, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setAutoTristate)},
    {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_setUserTristate), meth_QStandardItem_setUserTristate, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setUserTristate)},
    {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), 262},
    {sipName_UserType, static_cast<int>( ::QStandardItem::UserType), 262},
};

PyDoc_STRVAR(doc_QStandardItem, "\1QStandardItem()\n"
    "QStandardItem(str)\n"
    "QStandardItem(QIcon, str)\n"
    "QStandardItem(int, columns: int = 1)\n"
    "QStandardItem(QStandardItem)");


static pyqt5ClassPluginDef plugin_QStandardItem = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QStandardItem = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QStandardItem,
        {0},
        &plugin_QStandardItem
    },
    {
        sipNameNr_QStandardItem,
        {0, 0, 1},
        80, methods_QStandardItem,
        2, enummembers_QStandardItem,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QStandardItem,
    -1,
    -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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 64401 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 64405 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 64408 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 275 "sip/QtCore/qpycore_qhash.sip"
#include <qhash.h>
#line 64411 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 64414 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 64417 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 64420 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 64423 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 64426 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 64429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 64432 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 64435 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 64438 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 146 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 64441 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 64444 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 64447 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 64450 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 64453 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 64456 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 70 "sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 64459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 105 "sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 64462 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 326 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 64465 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 64468 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 64471 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 64474 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 64477 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 64480 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 64483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 64486 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 64489 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 64492 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 64495 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 64498 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 64501 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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*);
     ::QModelIndex index(int,int,const  ::QModelIndex&) const;
     ::QModelIndex parent(const  ::QModelIndex&) const;
     ::QModelIndex sibling(int,int,const  ::QModelIndex&) const;
    int rowCount(const  ::QModelIndex&) const;
    int columnCount(const  ::QModelIndex&) const;
    bool hasChildren(const  ::QModelIndex&) const;
     ::QVariant data(const  ::QModelIndex&,int) const;
    bool setData(const  ::QModelIndex&,const  ::QVariant&,int);
     ::QVariant headerData(int, ::Qt::Orientation,int) const;
    bool setHeaderData(int, ::Qt::Orientation,const  ::QVariant&,int);
    QMap<int, ::QVariant> itemData(const  ::QModelIndex&) const;
    bool setItemData(const  ::QModelIndex&,const QMap<int, ::QVariant>&);
     ::QStringList mimeTypes() const;
     ::QMimeData* mimeData(const  ::QModelIndexList&) const;
    bool dropMimeData(const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);
     ::Qt::DropActions supportedDropActions() const;
    bool insertRows(int,int,const  ::QModelIndex&);
    bool insertColumns(int,int,const  ::QModelIndex&);
    bool removeRows(int,int,const  ::QModelIndex&);
    bool removeColumns(int,int,const  ::QModelIndex&);
    void fetchMore(const  ::QModelIndex&);
    bool canFetchMore(const  ::QModelIndex&) const;
     ::Qt::ItemFlags flags(const  ::QModelIndex&) const;
    void sort(int, ::Qt::SortOrder);
     ::QModelIndex buddy(const  ::QModelIndex&) const;
     ::QModelIndexList match(const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags) const;
     ::QSize span(const  ::QModelIndex&) const;
    bool submit();
    void revert();
     ::Qt::DropActions supportedDragActions() const;
    QHash<int, ::QByteArray> roleNames() const;
    bool canDropMimeData(const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&) const;
    bool moveRows(const  ::QModelIndex&,int,int,const  ::QModelIndex&,int);
    bool moveColumns(const  ::QModelIndex&,int,int,const  ::QModelIndex&,int);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQStandardItemModel::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QStandardItemModel);

    return  ::QStandardItemModel::metaObject();
}

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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[7]),sipPySelf,NULL,sipName_index);

    if (!sipMeth)
        return  ::QStandardItemModel::index(a0,a1,a2);

    extern  ::QModelIndex sipVH_QtGui_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_QtGui_97(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

 ::QModelIndex sipQStandardItemModel::parent(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_parent);

    if (!sipMeth)
        return  ::QStandardItemModel::parent(a0);

    extern  ::QModelIndex sipVH_QtGui_82(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_QtGui_82(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[9]),sipPySelf,NULL,sipName_sibling);

    if (!sipMeth)
        return  ::QStandardItemModel::sibling(a0,a1,a2);

    extern  ::QModelIndex sipVH_QtGui_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_QtGui_97(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

int sipQStandardItemModel::rowCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_rowCount);

    if (!sipMeth)
        return  ::QStandardItemModel::rowCount(a0);

    extern int sipVH_QtGui_96(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_QtGui_96(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipQStandardItemModel::columnCount(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_columnCount);

    if (!sipMeth)
        return  ::QStandardItemModel::columnCount(a0);

    extern int sipVH_QtGui_96(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_QtGui_96(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQStandardItemModel::hasChildren(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_hasChildren);

    if (!sipMeth)
        return  ::QStandardItemModel::hasChildren(a0);

    extern bool sipVH_QtGui_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_QtGui_85(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QVariant sipQStandardItemModel::data(const  ::QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return  ::QStandardItemModel::data(a0,a1);

    extern  ::QVariant sipVH_QtGui_95(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int);

    return sipVH_QtGui_95(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipQStandardItemModel::setData(const  ::QModelIndex& a0,const  ::QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
        return  ::QStandardItemModel::setData(a0,a1,a2);

    extern bool sipVH_QtGui_94(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QVariant&,int);

    return sipVH_QtGui_94(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

 ::QVariant sipQStandardItemModel::headerData(int a0, ::Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_headerData);

    if (!sipMeth)
        return  ::QStandardItemModel::headerData(a0,a1,a2);

    extern  ::QVariant sipVH_QtGui_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,int);

    return sipVH_QtGui_93(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[16],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return  ::QStandardItemModel::setHeaderData(a0,a1,a2,a3);

    extern bool sipVH_QtGui_92(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::Orientation,const  ::QVariant&,int);

    return sipVH_QtGui_92(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2, a3);
}

QMap<int, ::QVariant> sipQStandardItemModel::itemData(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_itemData);

    if (!sipMeth)
        return  ::QStandardItemModel::itemData(a0);

    extern QMap<int, ::QVariant> sipVH_QtGui_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_QtGui_91(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQStandardItemModel::setItemData(const  ::QModelIndex& a0,const QMap<int, ::QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return  ::QStandardItemModel::setItemData(a0,a1);

    extern bool sipVH_QtGui_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const QMap<int, ::QVariant>&);

    return sipVH_QtGui_90(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

 ::QStringList sipQStandardItemModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_mimeTypes);

    if (!sipMeth)
        return  ::QStandardItemModel::mimeTypes();

    extern  ::QStringList sipVH_QtGui_89(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_89(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QMimeData* sipQStandardItemModel::mimeData(const  ::QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,NULL,sipName_mimeData);

    if (!sipMeth)
        return  ::QStandardItemModel::mimeData(a0);

    extern  ::QMimeData* sipVH_QtGui_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndexList&);

    return sipVH_QtGui_88(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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[21],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return  ::QStandardItemModel::dropMimeData(a0,a1,a2,a3,a4);

    extern bool sipVH_QtGui_77(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);

    return sipVH_QtGui_77(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::Qt::DropActions sipQStandardItemModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_supportedDropActions);

    if (!sipMeth)
        return  ::QStandardItemModel::supportedDropActions();

    extern  ::Qt::DropActions sipVH_QtGui_79(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_79(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQStandardItemModel::insertRows(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_insertRows);

    if (!sipMeth)
        return  ::QStandardItemModel::insertRows(a0,a1,a2);

    extern bool sipVH_QtGui_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_QtGui_87(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[24],sipPySelf,NULL,sipName_insertColumns);

    if (!sipMeth)
        return  ::QStandardItemModel::insertColumns(a0,a1,a2);

    extern bool sipVH_QtGui_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_QtGui_87(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[25],sipPySelf,NULL,sipName_removeRows);

    if (!sipMeth)
        return  ::QStandardItemModel::removeRows(a0,a1,a2);

    extern bool sipVH_QtGui_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_QtGui_87(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQStandardItemModel::removeColumns(int a0,int a1,const  ::QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_removeColumns);

    if (!sipMeth)
        return  ::QStandardItemModel::removeColumns(a0,a1,a2);

    extern bool sipVH_QtGui_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::QModelIndex&);

    return sipVH_QtGui_87(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

void sipQStandardItemModel::fetchMore(const  ::QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
         ::QStandardItemModel::fetchMore(a0);
        return;
    }

    extern void sipVH_QtGui_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    sipVH_QtGui_86(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQStandardItemModel::canFetchMore(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,NULL,sipName_canFetchMore);

    if (!sipMeth)
        return  ::QStandardItemModel::canFetchMore(a0);

    extern bool sipVH_QtGui_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_QtGui_85(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::Qt::ItemFlags sipQStandardItemModel::flags(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[29]),sipPySelf,NULL,sipName_flags);

    if (!sipMeth)
        return  ::QStandardItemModel::flags(a0);

    extern  ::Qt::ItemFlags sipVH_QtGui_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_QtGui_84(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQStandardItemModel::sort(int a0, ::Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
         ::QStandardItemModel::sort(a0,a1);
        return;
    }

    extern void sipVH_QtGui_83(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::Qt::SortOrder);

    sipVH_QtGui_83(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

 ::QModelIndex sipQStandardItemModel::buddy(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,NULL,sipName_buddy);

    if (!sipMeth)
        return  ::QStandardItemModel::buddy(a0);

    extern  ::QModelIndex sipVH_QtGui_82(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_QtGui_82(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[32]),sipPySelf,NULL,sipName_match);

    if (!sipMeth)
        return  ::QStandardItemModel::match(a0,a1,a2,a3,a4);

    extern  ::QModelIndexList sipVH_QtGui_81(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int,const  ::QVariant&,int, ::Qt::MatchFlags);

    return sipVH_QtGui_81(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::QSize sipQStandardItemModel::span(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,NULL,sipName_span);

    if (!sipMeth)
        return  ::QStandardItemModel::span(a0);

    extern  ::QSize sipVH_QtGui_80(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

    return sipVH_QtGui_80(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQStandardItemModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return  ::QStandardItemModel::submit();

    extern bool sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_28(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQStandardItemModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
         ::QStandardItemModel::revert();
        return;
    }

    extern void sipVH_QtGui_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtGui_39(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::Qt::DropActions sipQStandardItemModel::supportedDragActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_supportedDragActions);

    if (!sipMeth)
        return  ::QStandardItemModel::supportedDragActions();

    extern  ::Qt::DropActions sipVH_QtGui_79(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_79(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

QHash<int, ::QByteArray> sipQStandardItemModel::roleNames() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,NULL,sipName_roleNames);

    if (!sipMeth)
        return  ::QStandardItemModel::roleNames();

    extern QHash<int, ::QByteArray> sipVH_QtGui_78(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_78(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

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[38]),sipPySelf,NULL,sipName_canDropMimeData);

    if (!sipMeth)
        return  ::QStandardItemModel::canDropMimeData(a0,a1,a2,a3,a4);

    extern bool sipVH_QtGui_77(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMimeData*, ::Qt::DropAction,int,int,const  ::QModelIndex&);

    return sipVH_QtGui_77(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[39],sipPySelf,NULL,sipName_moveRows);

    if (!sipMeth)
        return  ::QStandardItemModel::moveRows(a0,a1,a2,a3,a4);

    extern bool sipVH_QtGui_76(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int,int,const  ::QModelIndex&,int);

    return sipVH_QtGui_76(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

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[40],sipPySelf,NULL,sipName_moveColumns);

    if (!sipMeth)
        return  ::QStandardItemModel::moveColumns(a0,a1,a2,a3,a4);

    extern bool sipVH_QtGui_76(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int,int,const  ::QModelIndex&,int);

    return sipVH_QtGui_76(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 65480 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 65540 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "encodeData(self, object, 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, "decodeData(self, 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, "beginInsertRows(self, 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, "endInsertRows(self)");

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, "beginRemoveRows(self, 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, "endRemoveRows(self)");

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, "beginInsertColumns(self, 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, "endInsertColumns(self)");

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, "beginRemoveColumns(self, 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, "endRemoveColumns(self)");

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, "persistentIndexList(self) -> object");

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, "changePersistentIndex(self, 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, "changePersistentIndexList(self, object, object)");

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, "createIndex(self, 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 66200 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "beginMoveRows(self, 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, "endMoveRows(self)");

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, "beginMoveColumns(self, 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, "endMoveColumns(self)");

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, "beginResetModel(self)");

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))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_beginResetModel();
            Py_END_ALLOW_THREADS

            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, "endResetModel(self)");

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))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_endResetModel();
            Py_END_ALLOW_THREADS

            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, "resetInternalData(self)");

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, "index(self, int, int, parent: QModelIndex = 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 || sipIsDerivedClass((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, "parent(self, QModelIndex) -> QModelIndex\n"
    "parent(self) -> 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 || sipIsDerivedClass((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, "rowCount(self, parent: QModelIndex = 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 || sipIsDerivedClass((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, "columnCount(self, parent: QModelIndex = 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 || sipIsDerivedClass((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, "hasChildren(self, parent: QModelIndex = 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 || sipIsDerivedClass((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, "data(self, QModelIndex, role: int = Qt.DisplayRole) -> Any");

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 || sipIsDerivedClass((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, "setData(self, QModelIndex, Any, role: int = 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 || sipIsDerivedClass((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, "headerData(self, int, Qt.Orientation, role: int = Qt.DisplayRole) -> Any");

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 || sipIsDerivedClass((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, "setHeaderData(self, int, Qt.Orientation, Any, role: int = 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 || sipIsDerivedClass((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, "insertRows(self, int, int, parent: QModelIndex = 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 || sipIsDerivedClass((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, "insertColumns(self, int, int, parent: QModelIndex = 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 || sipIsDerivedClass((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, "removeRows(self, int, int, parent: QModelIndex = 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 || sipIsDerivedClass((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, "removeColumns(self, int, int, parent: QModelIndex = 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 || sipIsDerivedClass((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, "flags(self, 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 || sipIsDerivedClass((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, "clear(self)");

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, "supportedDropActions(self) -> 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 || sipIsDerivedClass((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, "itemData(self, QModelIndex) -> Dict[int, Any]");

extern "C" {static PyObject *meth_QStandardItemModel_itemData(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_itemData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "setItemData(self, QModelIndex, Dict[int, Any]) -> 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 || sipIsDerivedClass((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, "sort(self, int, order: Qt.SortOrder = 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 || sipIsDerivedClass((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, "itemFromIndex(self, 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, "indexFromItem(self, 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, "item(self, int, column: int = 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, "setItem(self, int, int, QStandardItem)\n"
    "setItem(self, 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, "invisibleRootItem(self) -> 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, "horizontalHeaderItem(self, 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, "setHorizontalHeaderItem(self, 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, "verticalHeaderItem(self, 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, "setVerticalHeaderItem(self, 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, "setHorizontalHeaderLabels(self, Iterable[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, "setVerticalHeaderLabels(self, Iterable[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, "setRowCount(self, 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, "setColumnCount(self, 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, "appendRow(self, object)\n"
    "appendRow(self, 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, "appendColumn(self, Iterable[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, "insertRow(self, int, Iterable[QStandardItem])\n"
    "insertRow(self, int, QStandardItem)\n"
    "insertRow(self, int, parent: QModelIndex = 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, "insertColumn(self, int, Iterable[QStandardItem])\n"
    "insertColumn(self, int, parent: QModelIndex = 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, "takeItem(self, int, column: int = 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, "takeRow(self, int) -> List[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, "takeColumn(self, int) -> List[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, "takeHorizontalHeaderItem(self, 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, "takeVerticalHeaderItem(self, 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, "itemPrototype(self) -> 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, "setItemPrototype(self, 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, "findItems(self, str, flags: Union[Qt.MatchFlags, Qt.MatchFlag] = Qt.MatchExactly, column: int = 0) -> List[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, "sortRole(self) -> 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, "setSortRole(self, 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, "mimeTypes(self) -> List[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 || sipIsDerivedClass((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, "mimeData(self, object) -> 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 || sipIsDerivedClass((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, "dropMimeData(self, 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 || sipIsDerivedClass((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, "sibling(self, 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 || sipIsDerivedClass((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;
}


PyDoc_STRVAR(doc_QStandardItemModel_setItemRoleNames, "setItemRoleNames(self, Dict[int, Union[QByteArray, bytes, bytearray]])");

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

    {
        const QHash<int, ::QByteArray>* a0;
        int a0State = 0;
         ::QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QHash_1800_0100QByteArray,&a0, &a0State))
        {
            sipCpp->setItemRoleNames(*a0);
            sipReleaseType(const_cast<QHash<int, ::QByteArray> *>(a0),sipType_QHash_1800_0100QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setItemRoleNames, doc_QStandardItemModel_setItemRoleNames);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QStandardItemModel(void *, const sipTypeDef *);}
static void *cast_QStandardItemModel(void *sipCppV, const sipTypeDef *targetType)
{
     ::QStandardItemModel *sipCpp = reinterpret_cast< ::QStandardItemModel *>(sipCppV);

    if (targetType == sipType_QAbstractItemModel)
        return static_cast< ::QAbstractItemModel *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQStandardItemModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QStandardItemModel(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{0, 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_setItemRoleNames), meth_QStandardItemModel_setItemRoleNames, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setItemRoleNames)},
    {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)}
};

PyDoc_STRVAR(doc_QStandardItemModel, "\1QStandardItemModel(parent: QObject = None)\n"
    "QStandardItemModel(int, int, parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QStandardItemModel[] = {
    {"itemChanged(QStandardItem*)", "\1itemChanged(self, QStandardItem)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QStandardItemModel = {
    & ::QStandardItemModel::staticMetaObject,
    0,
    signals_QStandardItemModel,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QStandardItemModel = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QStandardItemModel,
        {0},
        &plugin_QStandardItemModel
    },
    {
        sipNameNr_QStandardItemModel,
        {0, 0, 1},
        81, 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
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsessionmanager.sip"
#include <qsessionmanager.h>
#line 68411 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qguiapplication.sip"
#include <qguiapplication.h>
#line 68415 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 68418 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 68421 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 68424 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 68427 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 68430 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 68433 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 68436 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 68439 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 68442 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 68445 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 68448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 68451 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 68454 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 68457 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 68460 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 68463 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 68466 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QSessionManager_sessionId, "sessionId(self) -> 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, "sessionKey(self) -> 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, "allowsInteraction(self) -> 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, "allowsErrorInteraction(self) -> 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, "release(self)");

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, "cancel(self)");

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, "setRestartHint(self, 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, "restartHint(self) -> 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, "setRestartCommand(self, Iterable[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, "restartCommand(self) -> List[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, "setDiscardCommand(self, Iterable[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, "discardCommand(self) -> List[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, "setManagerProperty(self, str, str)\n"
    "setManagerProperty(self, str, Iterable[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, "isPhase2(self) -> 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, "requestPhase2(self)");

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 inheritance hierarchy. */
extern "C" {static void *cast_QSessionManager(void *, const sipTypeDef *);}
static void *cast_QSessionManager(void *sipCppV, const sipTypeDef *targetType)
{
     ::QSessionManager *sipCpp = reinterpret_cast< ::QSessionManager *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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[] = {{25, 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), 257},
    {sipName_RestartIfRunning, static_cast<int>( ::QSessionManager::RestartIfRunning), 257},
    {sipName_RestartImmediately, static_cast<int>( ::QSessionManager::RestartImmediately), 257},
    {sipName_RestartNever, static_cast<int>( ::QSessionManager::RestartNever), 257},
};


static pyqt5ClassPluginDef plugin_QSessionManager = {
    & ::QSessionManager::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QSessionManager = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QSessionManager,
        {0},
        &plugin_QSessionManager
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 69024 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 69028 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 69031 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 69034 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 69037 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 69040 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 189 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 69043 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 69046 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 69049 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 69052 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 69055 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 69058 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 69061 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 69064 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 69067 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 69070 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 69073 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 69076 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 69079 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 69082 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 69085 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 69088 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 69091 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 69094 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 69097 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QScreen_name, "name(self) -> 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, "depth(self) -> 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, "size(self) -> 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, "geometry(self) -> 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, "physicalSize(self) -> 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, "physicalDotsPerInchX(self) -> 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, "physicalDotsPerInchY(self) -> 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, "physicalDotsPerInch(self) -> 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, "logicalDotsPerInchX(self) -> 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, "logicalDotsPerInchY(self) -> 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, "logicalDotsPerInch(self) -> 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, "availableSize(self) -> 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, "availableGeometry(self) -> 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, "virtualSiblings(self) -> List[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, "virtualSize(self) -> 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, "virtualGeometry(self) -> 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, "availableVirtualSize(self) -> 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, "availableVirtualGeometry(self) -> 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, "nativeOrientation(self) -> 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, "primaryOrientation(self) -> 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, "orientation(self) -> 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, "orientationUpdateMask(self) -> 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, "setOrientationUpdateMask(self, Union[Qt.ScreenOrientations, Qt.ScreenOrientation])");

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, "angleBetween(self, 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, "transformBetween(self, 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, "mapBetween(self, 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, "isPortrait(self, 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, "isLandscape(self, 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, "grabWindow(self, sip.voidptr, x: int = 0, y: int = 0, width: int = -1, height: int = -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, "refreshRate(self) -> 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, "devicePixelRatio(self) -> 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;
}


PyDoc_STRVAR(doc_QScreen_manufacturer, "manufacturer(self) -> str");

extern "C" {static PyObject *meth_QScreen_manufacturer(PyObject *, PyObject *);}
static PyObject *meth_QScreen_manufacturer(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->manufacturer());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_manufacturer, doc_QScreen_manufacturer);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_model, "model(self) -> str");

extern "C" {static PyObject *meth_QScreen_model(PyObject *, PyObject *);}
static PyObject *meth_QScreen_model(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->model());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_model, doc_QScreen_model);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_serialNumber, "serialNumber(self) -> str");

extern "C" {static PyObject *meth_QScreen_serialNumber(PyObject *, PyObject *);}
static PyObject *meth_QScreen_serialNumber(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->serialNumber());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_serialNumber, doc_QScreen_serialNumber);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QScreen(void *, const sipTypeDef *);}
static void *cast_QScreen(void *sipCppV, const sipTypeDef *targetType)
{
     ::QScreen *sipCpp = reinterpret_cast< ::QScreen *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_QScreen(sipGetAddress(sipSelf), 0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QScreen[] = {{25, 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_manufacturer), meth_QScreen_manufacturer, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_manufacturer)},
    {SIP_MLNAME_CAST(sipName_mapBetween), meth_QScreen_mapBetween, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_mapBetween)},
    {SIP_MLNAME_CAST(sipName_model), meth_QScreen_model, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_model)},
    {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_serialNumber), meth_QScreen_serialNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_serialNumber)},
    {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)", "\1availableGeometryChanged(self, QRect)", 0, 0},
    {"virtualGeometryChanged(QRect)", "\1virtualGeometryChanged(self, QRect)", 0, 0},
    {"physicalSizeChanged(QSizeF)", "\1physicalSizeChanged(self, QSizeF)", 0, 0},
    {"refreshRateChanged(qreal)", "\1refreshRateChanged(self, float)", 0, 0},
    {"orientationChanged(Qt::ScreenOrientation)", "\1orientationChanged(self, Qt.ScreenOrientation)", 0, 0},
    {"primaryOrientationChanged(Qt::ScreenOrientation)", "\1primaryOrientationChanged(self, Qt.ScreenOrientation)", 0, 0},
    {"logicalDotsPerInchChanged(qreal)", "\1logicalDotsPerInchChanged(self, float)", 0, 0},
    {"physicalDotsPerInchChanged(qreal)", "\1physicalDotsPerInchChanged(self, float)", 0, 0},
    {"geometryChanged(QRect)", "\1geometryChanged(self, QRect)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QScreen = {
    & ::QScreen::staticMetaObject,
    0,
    signals_QScreen,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QScreen = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QScreen,
        {0},
        &plugin_QScreen
    },
    {
        sipNameNr_QScreen,
        {0, 0, 1},
        34, 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
};

#line 34 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrgba64.sip"
#include <qrgba64.h>
#line 70231 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QRgba64_fromRgba64, "fromRgba64(int) -> QRgba64\n"
    "fromRgba64(int, int, int, int) -> QRgba64");

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

    {
         ::quint64 a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "o", &a0))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64( ::QRgba64::fromRgba64(a0));

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

    {
         ::quint16 a0;
         ::quint16 a1;
         ::quint16 a2;
         ::quint16 a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "tttt", &a0, &a1, &a2, &a3))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64( ::QRgba64::fromRgba64(a0,a1,a2,a3));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRgba64, sipName_fromRgba64, doc_QRgba64_fromRgba64);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_fromRgba, "fromRgba(int, int, int, int) -> QRgba64");

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

    {
         ::quint8 a0;
         ::quint8 a1;
         ::quint8 a2;
         ::quint8 a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "MMMM", &a0, &a1, &a2, &a3))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64( ::QRgba64::fromRgba(a0,a1,a2,a3));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRgba64, sipName_fromRgba, doc_QRgba64_fromRgba);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_fromArgb32, "fromArgb32(int) -> QRgba64");

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

    {
         ::uint a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64( ::QRgba64::fromArgb32(a0));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRgba64, sipName_fromArgb32, doc_QRgba64_fromArgb32);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_isOpaque, "isOpaque(self) -> bool");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isOpaque();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRgba64, sipName_isOpaque, doc_QRgba64_isOpaque);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_isTransparent, "isTransparent(self) -> bool");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isTransparent();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRgba64, sipName_isTransparent, doc_QRgba64_isTransparent);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_red, "red(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::quint16 sipRes;

            sipRes = sipCpp->red();

#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_QRgba64, sipName_red, doc_QRgba64_red);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_green, "green(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::quint16 sipRes;

            sipRes = sipCpp->green();

#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_QRgba64, sipName_green, doc_QRgba64_green);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_blue, "blue(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::quint16 sipRes;

            sipRes = sipCpp->blue();

#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_QRgba64, sipName_blue, doc_QRgba64_blue);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_alpha, "alpha(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::quint16 sipRes;

            sipRes = sipCpp->alpha();

#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_QRgba64, sipName_alpha, doc_QRgba64_alpha);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_setRed, "setRed(self, int)");

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

    {
         ::quint16 a0;
         ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_QRgba64, &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_QRgba64, sipName_setRed, doc_QRgba64_setRed);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_setGreen, "setGreen(self, int)");

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

    {
         ::quint16 a0;
         ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_QRgba64, &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_QRgba64, sipName_setGreen, doc_QRgba64_setGreen);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_setBlue, "setBlue(self, int)");

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

    {
         ::quint16 a0;
         ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_QRgba64, &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_QRgba64, sipName_setBlue, doc_QRgba64_setBlue);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_setAlpha, "setAlpha(self, int)");

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

    {
         ::quint16 a0;
         ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bt", &sipSelf, sipType_QRgba64, &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_QRgba64, sipName_setAlpha, doc_QRgba64_setAlpha);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_red8, "red8(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::quint8 sipRes;

            sipRes = sipCpp->red8();

#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_QRgba64, sipName_red8, doc_QRgba64_red8);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_green8, "green8(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::quint8 sipRes;

            sipRes = sipCpp->green8();

#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_QRgba64, sipName_green8, doc_QRgba64_green8);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_blue8, "blue8(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::quint8 sipRes;

            sipRes = sipCpp->blue8();

#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_QRgba64, sipName_blue8, doc_QRgba64_blue8);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_alpha8, "alpha8(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::quint8 sipRes;

            sipRes = sipCpp->alpha8();

#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_QRgba64, sipName_alpha8, doc_QRgba64_alpha8);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_toArgb32, "toArgb32(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::uint sipRes;

            sipRes = sipCpp->toArgb32();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRgba64, sipName_toArgb32, doc_QRgba64_toArgb32);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_toRgb16, "toRgb16(self) -> int");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::ushort sipRes;

            sipRes = sipCpp->toRgb16();

#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_QRgba64, sipName_toRgb16, doc_QRgba64_toRgb16);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_premultiplied, "premultiplied(self) -> QRgba64");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64(sipCpp->premultiplied());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRgba64, sipName_premultiplied, doc_QRgba64_premultiplied);

    return NULL;
}


PyDoc_STRVAR(doc_QRgba64_unpremultiplied, "unpremultiplied(self) -> QRgba64");

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

    {
        const  ::QRgba64 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRgba64, &sipCpp))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64(sipCpp->unpremultiplied());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRgba64, sipName_unpremultiplied, doc_QRgba64_unpremultiplied);

    return NULL;
}


extern "C" {static PyObject *slot_QRgba64___long__(PyObject *);}
static PyObject *slot_QRgba64___long__(PyObject *sipSelf)
{
     ::QRgba64 *sipCpp = reinterpret_cast< ::QRgba64 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRgba64));

    if (!sipCpp)
        return 0;


    {
        {
             ::quint64 sipRes;

            sipRes = *sipCpp;

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    return 0;
}


/* Call the instance's destructor. */
extern "C" {static void release_QRgba64(void *, int);}
static void release_QRgba64(void *sipCppV, int)
{
    delete reinterpret_cast< ::QRgba64 *>(sipCppV);
}


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


extern "C" {static void *array_QRgba64(SIP_SSIZE_T);}
static void *array_QRgba64(SIP_SSIZE_T sipNrElem)
{
    return new  ::QRgba64[sipNrElem];
}


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


extern "C" {static void dealloc_QRgba64(sipSimpleWrapper *);}
static void dealloc_QRgba64(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QRgba64(sipGetAddress(sipSelf), 0);
    }
}


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QRgba64();

            return sipCpp;
        }
    }

    {
        const  ::QRgba64* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QRgba64, &a0))
        {
            sipCpp = new  ::QRgba64(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QRgba64[] = {
#if PY_MAJOR_VERSION < 3
    {(void *)slot_QRgba64___long__, long_slot},
#else
    {(void *)slot_QRgba64___long__, int_slot},
#endif
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QRgba64[] = {
    {SIP_MLNAME_CAST(sipName_alpha), meth_QRgba64_alpha, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_alpha)},
    {SIP_MLNAME_CAST(sipName_alpha8), meth_QRgba64_alpha8, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_alpha8)},
    {SIP_MLNAME_CAST(sipName_blue), meth_QRgba64_blue, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_blue)},
    {SIP_MLNAME_CAST(sipName_blue8), meth_QRgba64_blue8, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_blue8)},
    {SIP_MLNAME_CAST(sipName_fromArgb32), meth_QRgba64_fromArgb32, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_fromArgb32)},
    {SIP_MLNAME_CAST(sipName_fromRgba), meth_QRgba64_fromRgba, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_fromRgba)},
    {SIP_MLNAME_CAST(sipName_fromRgba64), meth_QRgba64_fromRgba64, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_fromRgba64)},
    {SIP_MLNAME_CAST(sipName_green), meth_QRgba64_green, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_green)},
    {SIP_MLNAME_CAST(sipName_green8), meth_QRgba64_green8, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_green8)},
    {SIP_MLNAME_CAST(sipName_isOpaque), meth_QRgba64_isOpaque, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_isOpaque)},
    {SIP_MLNAME_CAST(sipName_isTransparent), meth_QRgba64_isTransparent, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_isTransparent)},
    {SIP_MLNAME_CAST(sipName_premultiplied), meth_QRgba64_premultiplied, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_premultiplied)},
    {SIP_MLNAME_CAST(sipName_red), meth_QRgba64_red, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_red)},
    {SIP_MLNAME_CAST(sipName_red8), meth_QRgba64_red8, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_red8)},
    {SIP_MLNAME_CAST(sipName_setAlpha), meth_QRgba64_setAlpha, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_setAlpha)},
    {SIP_MLNAME_CAST(sipName_setBlue), meth_QRgba64_setBlue, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_setBlue)},
    {SIP_MLNAME_CAST(sipName_setGreen), meth_QRgba64_setGreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_setGreen)},
    {SIP_MLNAME_CAST(sipName_setRed), meth_QRgba64_setRed, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_setRed)},
    {SIP_MLNAME_CAST(sipName_toArgb32), meth_QRgba64_toArgb32, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_toArgb32)},
    {SIP_MLNAME_CAST(sipName_toRgb16), meth_QRgba64_toRgb16, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_toRgb16)},
    {SIP_MLNAME_CAST(sipName_unpremultiplied), meth_QRgba64_unpremultiplied, METH_VARARGS, SIP_MLDOC_CAST(doc_QRgba64_unpremultiplied)}
};

PyDoc_STRVAR(doc_QRgba64, "\1QRgba64()\n"
    "QRgba64(QRgba64)");


static pyqt5ClassPluginDef plugin_QRgba64 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QRgba64 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRgba64,
        {0},
        &plugin_QRgba64
    },
    {
        sipNameNr_QRgba64,
        {0, 0, 1},
        21, methods_QRgba64,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRgba64,
    -1,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QRgba64,
    init_type_QRgba64,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QRgba64,
    assign_QRgba64,
    array_QRgba64,
    copy_QRgba64,
    release_QRgba64,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 71070 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 71074 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 71077 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 71080 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 71083 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 71086 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 71089 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 71092 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 71095 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QRegion_isEmpty, "isEmpty(self) -> 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, "contains(self, QPoint) -> bool\n"
    "contains(self, 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, "translate(self, int, int)\n"
    "translate(self, 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, "translated(self, int, int) -> QRegion\n"
    "translated(self, 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, "united(self, QRegion) -> QRegion\n"
    "united(self, 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, "boundingRect(self) -> 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, "rects(self) -> List[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_setRects, "setRects(self, Iterable[QRect])");

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

    {
        const QVector< ::QRect>* a0;
        int a0State = 0;
         ::QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QRegion, &sipCpp, sipType_QVector_0100QRect,&a0, &a0State))
        {
#line 82 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
        if (a0->size())
            sipCpp->setRects(a0->data(), a0->size());
        else
            sipCpp->setRects(0, 0);
#line 71382 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
            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_QRegion, sipName_setRects, doc_QRegion_setRects);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_intersected, "intersected(self, QRegion) -> QRegion\n"
    "intersected(self, 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, "subtracted(self, 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, "xored(self, 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, "intersects(self, QRegion) -> bool\n"
    "intersects(self, 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, "rectCount(self) -> 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, "swap(self, 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, "isNull(self) -> 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 60 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
        sipRes = sipCpp->contains(*a0);
#line 72132 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    {
        const  ::QRect* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRect, &a0))
        {
            int sipRes = 0;

#line 66 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
        sipRes = sipCpp->contains(*a0);
#line 72147 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 54 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
        sipRes = !sipCpp->isEmpty();
#line 72175 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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 (sipIsOwnedByPython(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 44 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
        if (a0->canConvert<QRegion>())
            sipCpp = new QRegion(a0->value<QRegion>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 72331 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_setRects), meth_QRegion_setRects, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_setRects)},
    {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), 248},
    {sipName_Rectangle, static_cast<int>( ::QRegion::Rectangle), 248},
};

PyDoc_STRVAR(doc_QRegion, "\1QRegion()\n"
    "QRegion(int, int, int, int, type: QRegion.RegionType = QRegion.Rectangle)\n"
    "QRegion(QRect, type: QRegion.RegionType = QRegion.Rectangle)\n"
    "QRegion(QPolygon, fillRule: Qt.FillRule = Qt.OddEvenFill)\n"
    "QRegion(QBitmap)\n"
    "QRegion(QRegion)\n"
    "QRegion(Any)");


static pyqt5ClassPluginDef plugin_QRegion = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QRegion = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRegion,
        {0},
        &plugin_QRegion
    },
    {
        sipNameNr_QRegion,
        {0, 0, 1},
        15, methods_QRegion,
        2, enummembers_QRegion,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRegion,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 72466 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 72470 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QRawFont_LayoutFlags___hash__(PyObject *);}
static long slot_QRawFont_LayoutFlags___hash__(PyObject *sipSelf)
{
     ::QRawFont::LayoutFlags *sipCpp = reinterpret_cast< ::QRawFont::LayoutFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont_LayoutFlags));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QRawFont::LayoutFlags::Int();
#line 72488 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QRawFont::LayoutFlags::Int() != 0);
#line 72513 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QRawFont::LayoutFlags::Int() != a0->operator QRawFont::LayoutFlags::Int());
#line 72543 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QRawFont::LayoutFlags::Int() == a0->operator QRawFont::LayoutFlags::Int());
#line 72579 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QRawFont::LayoutFlags(*sipCpp ^ a0);
#line 72618 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QRawFont_LayoutFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QRawFont::LayoutFlags(*sipCpp | a0);
#line 72690 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QRawFont_LayoutFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QRawFont::LayoutFlags();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QRawFont::LayoutFlags(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 72958 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QRawFont_LayoutFlags[] = {
    {(void *)slot_QRawFont_LayoutFlags___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QRawFont_LayoutFlags___xor__, xor_slot},
    {(void *)slot_QRawFont_LayoutFlags___ior__, ior_slot},
    {(void *)slot_QRawFont_LayoutFlags___or__, or_slot},
    {(void *)slot_QRawFont_LayoutFlags___iand__, iand_slot},
    {(void *)slot_QRawFont_LayoutFlags___and__, and_slot},
    {(void *)slot_QRawFont_LayoutFlags___invert__, invert_slot},
    {(void *)slot_QRawFont_LayoutFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QRawFont_LayoutFlags, "\1QRawFont.LayoutFlags()\n"
    "QRawFont.LayoutFlags(Union[QRawFont.LayoutFlags, QRawFont.LayoutFlag])\n"
    "QRawFont.LayoutFlags(QRawFont.LayoutFlags)");


static pyqt5ClassPluginDef plugin_QRawFont_LayoutFlags = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QRawFont_LayoutFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRawFont__LayoutFlags,
        {0},
        &plugin_QRawFont_LayoutFlags
    },
    {
        sipNameNr_LayoutFlags,
        {242, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRawFont_LayoutFlags,
    -1,
    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,
    0,
    convertTo_QRawFont_LayoutFlags,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 73044 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 73048 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 73051 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 73054 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 73057 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 73060 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qlist.sip"
#include <qfontdatabase.h>
#line 73063 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 73066 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 73069 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 73072 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 73075 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 73078 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 73081 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 73084 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 73087 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QRawFont_isValid, "isValid(self) -> 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, "familyName(self) -> 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, "styleName(self) -> 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, "style(self) -> 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, "weight(self) -> 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, "glyphIndexesForString(self, str) -> List[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, "advancesForGlyphIndexes(self, Iterable[int]) -> List[QPointF]\n"
    "advancesForGlyphIndexes(self, Iterable[int], Union[QRawFont.LayoutFlags, QRawFont.LayoutFlag]) -> List[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, "alphaMapForGlyph(self, int, antialiasingType: QRawFont.AntialiasingType = QRawFont.SubPixelAntialiasing, transform: QTransform = 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, "pathForGlyph(self, 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, "setPixelSize(self, 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, "pixelSize(self) -> 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, "hintingPreference(self) -> 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, "ascent(self) -> 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, "descent(self) -> 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, "leading(self) -> 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, "xHeight(self) -> 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, "averageCharWidth(self) -> 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, "maxCharWidth(self) -> 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, "unitsPerEm(self) -> 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, "loadFromFile(self, 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, "loadFromData(self, Union[QByteArray, bytes, bytearray], 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, "supportsCharacter(self, int) -> bool\n"
    "supportsCharacter(self, 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, "supportedWritingSystems(self) -> List[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, "fontTable(self, 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;
        const  ::QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bs", &sipSelf, sipType_QRawFont, &sipCpp, &a0))
        {
             ::QByteArray*sipRes;

            sipRes = new  ::QByteArray(sipCpp->fontTable(a0));

            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, "fromFont(QFont, writingSystem: QFontDatabase.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, "boundingRect(self, 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, "lineThickness(self) -> 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, "underlinePosition(self) -> 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, "swap(self, 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;
}


PyDoc_STRVAR(doc_QRawFont_capHeight, "capHeight(self) -> float");

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

    {
        const  ::QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->capHeight();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_capHeight, doc_QRawFont_capHeight);

    return NULL;
}


extern "C" {static long slot_QRawFont___hash__(PyObject *);}
static long slot_QRawFont___hash__(PyObject *sipSelf)
{
     ::QRawFont *sipCpp = reinterpret_cast< ::QRawFont *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 97 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrawfont.sip"
        sipRes = qHash(*sipCpp);
#line 74022 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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);
}


/* 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 (sipIsOwnedByPython(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___hash__, hash_slot},
    {(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_capHeight), meth_QRawFont_capHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_capHeight)},
    {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), 244},
    {sipName_PixelAntialiasing, static_cast<int>( ::QRawFont::PixelAntialiasing), 243},
    {sipName_SeparateAdvances, static_cast<int>( ::QRawFont::SeparateAdvances), 244},
    {sipName_SubPixelAntialiasing, static_cast<int>( ::QRawFont::SubPixelAntialiasing), 243},
    {sipName_UseDesignMetrics, static_cast<int>( ::QRawFont::UseDesignMetrics), 244},
};

PyDoc_STRVAR(doc_QRawFont, "\1QRawFont()\n"
    "QRawFont(str, float, hintingPreference: QFont.HintingPreference = QFont.PreferDefaultHinting)\n"
    "QRawFont(Union[QByteArray, bytes, bytearray], float, hintingPreference: QFont.HintingPreference = QFont.PreferDefaultHinting)\n"
    "QRawFont(QRawFont)");


static pyqt5ClassPluginDef plugin_QRawFont = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QRawFont = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRawFont,
        {0},
        &plugin_QRawFont
    },
    {
        sipNameNr_QRawFont,
        {0, 0, 1},
        30, methods_QRawFont,
        5, enummembers_QRawFont,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRawFont,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrasterwindow.sip"
#include <qrasterwindow.h>
#line 74322 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 74326 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 74329 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 74332 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74335 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74338 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 74341 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 74344 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 74347 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 189 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 74350 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 293 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74353 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74356 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74359 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74365 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74368 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74371 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 372 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74374 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 400 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74377 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 74380 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 74383 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 74386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 74389 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 74392 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 74395 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 74398 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 74401 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 74404 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 74407 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 74410 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 74413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 74416 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 74419 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 74422 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 74425 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 74428 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 74431 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 74434 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 74437 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 74440 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 74443 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 74446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 74449 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 74452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    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*);
    void exposeEvent( ::QExposeEvent*);
     ::QObject* focusObject() const;
     ::QSurfaceFormat format() const;
     ::QSurface::SurfaceType surfaceType() const;
     ::QSize size() const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);
    int metric( ::QPaintDevice::PaintDeviceMetric) const;
     ::QPaintEngine* paintEngine() const;
    void paintEvent( ::QPaintEvent*);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQRasterWindow::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QRasterWindow);

    return  ::QRasterWindow::metaObject();
}

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));
}

void sipQRasterWindow::tabletEvent( ::QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::tabletEvent(a0);
        return;
    }

    extern void sipVH_QtGui_51(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTabletEvent*);

    sipVH_QtGui_51(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::touchEvent( ::QTouchEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_touchEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::touchEvent(a0);
        return;
    }

    extern void sipVH_QtGui_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTouchEvent*);

    sipVH_QtGui_50(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::wheelEvent( ::QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::wheelEvent(a0);
        return;
    }

    extern void sipVH_QtGui_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWheelEvent*);

    sipVH_QtGui_49(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::mouseMoveEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::mouseMoveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::mouseDoubleClickEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::mouseDoubleClickEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::mouseReleaseEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::mouseReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::mousePressEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::mousePressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::keyReleaseEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::keyReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_QtGui_47(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::keyPressEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::keyPressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_QtGui_47(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::hideEvent( ::QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::hideEvent(a0);
        return;
    }

    extern void sipVH_QtGui_46(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QHideEvent*);

    sipVH_QtGui_46(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::showEvent( ::QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::showEvent(a0);
        return;
    }

    extern void sipVH_QtGui_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QShowEvent*);

    sipVH_QtGui_45(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::focusOutEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::focusOutEvent(a0);
        return;
    }

    extern void sipVH_QtGui_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_QtGui_44(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::focusInEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::focusInEvent(a0);
        return;
    }

    extern void sipVH_QtGui_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_QtGui_44(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::moveEvent( ::QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::moveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMoveEvent*);

    sipVH_QtGui_43(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::resizeEvent( ::QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::resizeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QResizeEvent*);

    sipVH_QtGui_42(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::exposeEvent( ::QExposeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_exposeEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::exposeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QExposeEvent*);

    sipVH_QtGui_41(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QObject* sipQRasterWindow::focusObject() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_focusObject);

    if (!sipMeth)
        return  ::QRasterWindow::focusObject();

    extern  ::QObject* sipVH_QtGui_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_40(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSurfaceFormat sipQRasterWindow::format() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_format);

    if (!sipMeth)
        return  ::QRasterWindow::format();

    extern  ::QSurfaceFormat sipVH_QtGui_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_36(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSurface::SurfaceType sipQRasterWindow::surfaceType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_surfaceType);

    if (!sipMeth)
        return  ::QRasterWindow::surfaceType();

    extern  ::QSurface::SurfaceType sipVH_QtGui_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_37(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSize sipQRasterWindow::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return  ::QRasterWindow::size();

    extern  ::QSize sipVH_QtGui_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_38(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQRasterWindow::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QRasterWindow::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQRasterWindow::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QRasterWindow::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQRasterWindow::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QRasterWindow::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QRasterWindow::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QRasterWindow::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipQRasterWindow::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  ::QRasterWindow::metric(a0);

    extern int sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QPaintEngine* sipQRasterWindow::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,sipName_QRasterWindow,sipName_paintEngine);

    if (!sipMeth)
        return 0;

    extern  ::QPaintEngine* sipVH_QtGui_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQRasterWindow::paintEvent( ::QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],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, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 75279 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 75339 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "resizeEvent(self, 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 || sipIsDerivedClass((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, "moveEvent(self, 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 || sipIsDerivedClass((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, "focusInEvent(self, 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 || sipIsDerivedClass((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, "focusOutEvent(self, 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 || sipIsDerivedClass((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, "showEvent(self, 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 || sipIsDerivedClass((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, "hideEvent(self, 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 || sipIsDerivedClass((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, "keyPressEvent(self, 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 || sipIsDerivedClass((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, "keyReleaseEvent(self, 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 || sipIsDerivedClass((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, "mousePressEvent(self, 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 || sipIsDerivedClass((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, "mouseReleaseEvent(self, 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 || sipIsDerivedClass((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, "mouseDoubleClickEvent(self, 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 || sipIsDerivedClass((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, "mouseMoveEvent(self, 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 || sipIsDerivedClass((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, "wheelEvent(self, 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 || sipIsDerivedClass((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, "touchEvent(self, 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 || sipIsDerivedClass((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, "tabletEvent(self, 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 || sipIsDerivedClass((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, "paintEvent(self, 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 || sipIsDerivedClass((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, "exposeEvent(self, 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 || sipIsDerivedClass((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, "event(self, 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 || sipIsDerivedClass((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, "metric(self, 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 || sipIsDerivedClass((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 inheritance hierarchy. */
extern "C" {static void *cast_QRasterWindow(void *, const sipTypeDef *);}
static void *cast_QRasterWindow(void *sipCppV, const sipTypeDef *targetType)
{
     ::QRasterWindow *sipCpp = reinterpret_cast< ::QRasterWindow *>(sipCppV);

    if (targetType == sipType_QPaintDeviceWindow)
        return static_cast< ::QPaintDeviceWindow *>(sipCpp);

    if (targetType == sipType_QWindow)
        return static_cast< ::QWindow *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_QSurface)
        return static_cast< ::QSurface *>(sipCpp);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQRasterWindow *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QRasterWindow(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{193, 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(parent: QWindow = None)");


static pyqt5ClassPluginDef plugin_QRasterWindow = {
    & ::QRasterWindow::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QRasterWindow = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRasterWindow,
        {0},
        &plugin_QRasterWindow
    },
    {
        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
};

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qquaternion.sip"
#include <qquaternion.h>
#line 76290 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 76294 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 76297 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 76300 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QQuaternion_length, "length(self) -> 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, "lengthSquared(self) -> 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, "normalized(self) -> 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, "normalize(self)");

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, "rotatedVector(self, 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, "fromAxisAndAngle(QVector3D, float) -> QQuaternion\n"
    "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, "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, "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, "isNull(self) -> 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, "isIdentity(self) -> 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, "x(self) -> 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, "y(self) -> 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, "z(self) -> 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, "scalar(self) -> 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, "setX(self, 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, "setY(self, 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, "setZ(self, 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, "setScalar(self, 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, "conjugate(self) -> 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, "setVector(self, QVector3D)\n"
    "setVector(self, 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, "vector(self) -> 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, "toVector4D(self) -> 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;
}


PyDoc_STRVAR(doc_QQuaternion_getAxisAndAngle, "getAxisAndAngle(self) -> Tuple[QVector3D, float]");

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

    {
         ::QVector3D* a0;
        float a1;
        const  ::QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            a0 = new  ::QVector3D();

            sipCpp->getAxisAndAngle(a0,&a1);

            return sipBuildResult(0,"(Nf)",a0,sipType_QVector3D,NULL,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_getAxisAndAngle, doc_QQuaternion_getAxisAndAngle);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_getEulerAngles, "getEulerAngles(self) -> Tuple[float, float, float]");

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

    {
        float a0;
        float a1;
        float a2;
        const  ::QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            sipCpp->getEulerAngles(&a0,&a1,&a2);

            return sipBuildResult(0,"(fff)",a0,a1,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_getEulerAngles, doc_QQuaternion_getEulerAngles);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_fromEulerAngles, "fromEulerAngles(float, float, float) -> QQuaternion\n"
    "fromEulerAngles(QVector3D) -> QQuaternion");

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

    {
        float a0;
        float a1;
        float a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "fff", &a0, &a1, &a2))
        {
             ::QQuaternion*sipRes;

            sipRes = new  ::QQuaternion( ::QQuaternion::fromEulerAngles(a0,a1,a2));

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

    {
        const  ::QVector3D* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QVector3D, &a0))
        {
             ::QQuaternion*sipRes;

            sipRes = new  ::QQuaternion( ::QQuaternion::fromEulerAngles(*a0));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_fromEulerAngles, doc_QQuaternion_fromEulerAngles);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_toRotationMatrix, "toRotationMatrix(self) -> QMatrix3x3");

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

    {
        const  ::QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
             ::QMatrix3x3*sipRes;

            sipRes = new  ::QMatrix3x3(sipCpp->toRotationMatrix());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_toRotationMatrix, doc_QQuaternion_toRotationMatrix);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_fromRotationMatrix, "fromRotationMatrix(QMatrix3x3) -> QQuaternion");

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

    {
        const  ::QMatrix3x3* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QMatrix3x3, &a0))
        {
             ::QQuaternion*sipRes;

            sipRes = new  ::QQuaternion( ::QQuaternion::fromRotationMatrix(*a0));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_fromRotationMatrix, doc_QQuaternion_fromRotationMatrix);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_getAxes, "getAxes(self) -> Tuple[QVector3D, QVector3D, QVector3D]");

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

    {
         ::QVector3D* a0;
         ::QVector3D* a1;
         ::QVector3D* a2;
        const  ::QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            a0 = new  ::QVector3D();
            a1 = new  ::QVector3D();
            a2 = new  ::QVector3D();

            sipCpp->getAxes(a0,a1,a2);

            return sipBuildResult(0,"(NNN)",a0,sipType_QVector3D,NULL,a1,sipType_QVector3D,NULL,a2,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_getAxes, doc_QQuaternion_getAxes);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_fromAxes, "fromAxes(QVector3D, QVector3D, QVector3D) -> QQuaternion");

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

    {
        const  ::QVector3D* a0;
        const  ::QVector3D* a1;
        const  ::QVector3D* a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9J9", sipType_QVector3D, &a0, sipType_QVector3D, &a1, sipType_QVector3D, &a2))
        {
             ::QQuaternion*sipRes;

            sipRes = new  ::QQuaternion( ::QQuaternion::fromAxes(*a0,*a1,*a2));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_fromAxes, doc_QQuaternion_fromAxes);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_fromDirection, "fromDirection(QVector3D, QVector3D) -> QQuaternion");

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

    {
        const  ::QVector3D* a0;
        const  ::QVector3D* a1;

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

            sipRes = new  ::QQuaternion( ::QQuaternion::fromDirection(*a0,*a1));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_fromDirection, doc_QQuaternion_fromDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_rotationTo, "rotationTo(QVector3D, QVector3D) -> QQuaternion");

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

    {
        const  ::QVector3D* a0;
        const  ::QVector3D* a1;

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

            sipRes = new  ::QQuaternion( ::QQuaternion::rotationTo(*a0,*a1));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_rotationTo, doc_QQuaternion_rotationTo);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_dotProduct, "dotProduct(QQuaternion, QQuaternion) -> float");

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

    {
        const  ::QQuaternion* a0;
        const  ::QQuaternion* a1;

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

            sipRes =  ::QQuaternion::dotProduct(*a0,*a1);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_dotProduct, doc_QQuaternion_dotProduct);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_inverted, "inverted(self) -> QQuaternion");

extern "C" {static PyObject *meth_QQuaternion_inverted(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_inverted(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->inverted());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_inverted, doc_QQuaternion_inverted);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_conjugated, "conjugated(self) -> QQuaternion");

extern "C" {static PyObject *meth_QQuaternion_conjugated(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_conjugated(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->conjugated());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_conjugated, doc_QQuaternion_conjugated);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_toEulerAngles, "toEulerAngles(self) -> QVector3D");

extern "C" {static PyObject *meth_QQuaternion_toEulerAngles(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_toEulerAngles(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->toEulerAngles());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_toEulerAngles, doc_QQuaternion_toEulerAngles);

    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___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___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);
        }
    }

    {
        const  ::QQuaternion* a0;
        const  ::QVector3D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QQuaternion, &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_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___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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 77807 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qquaternion.sip"
    sipRes = Py_BuildValue((char *)"dddd", (double)sipCpp->scalar(),
            (double)sipCpp->x(), (double)sipCpp->y(), (double)sipCpp->z());
#line 77834 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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___ne__, ne_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___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_conjugated), meth_QQuaternion_conjugated, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_conjugated)},
    {SIP_MLNAME_CAST(sipName_dotProduct), meth_QQuaternion_dotProduct, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_dotProduct)},
    {SIP_MLNAME_CAST(sipName_fromAxes), meth_QQuaternion_fromAxes, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_fromAxes)},
    {SIP_MLNAME_CAST(sipName_fromAxisAndAngle), meth_QQuaternion_fromAxisAndAngle, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_fromAxisAndAngle)},
    {SIP_MLNAME_CAST(sipName_fromDirection), meth_QQuaternion_fromDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_fromDirection)},
    {SIP_MLNAME_CAST(sipName_fromEulerAngles), meth_QQuaternion_fromEulerAngles, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_fromEulerAngles)},
    {SIP_MLNAME_CAST(sipName_fromRotationMatrix), meth_QQuaternion_fromRotationMatrix, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_fromRotationMatrix)},
    {SIP_MLNAME_CAST(sipName_getAxes), meth_QQuaternion_getAxes, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_getAxes)},
    {SIP_MLNAME_CAST(sipName_getAxisAndAngle), meth_QQuaternion_getAxisAndAngle, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_getAxisAndAngle)},
    {SIP_MLNAME_CAST(sipName_getEulerAngles), meth_QQuaternion_getEulerAngles, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_getEulerAngles)},
    {SIP_MLNAME_CAST(sipName_inverted), meth_QQuaternion_inverted, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_inverted)},
    {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_rotationTo), meth_QQuaternion_rotationTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_rotationTo)},
    {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_toEulerAngles), meth_QQuaternion_toEulerAngles, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_toEulerAngles)},
    {SIP_MLNAME_CAST(sipName_toRotationMatrix), meth_QQuaternion_toRotationMatrix, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_toRotationMatrix)},
    {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)");


static pyqt5ClassPluginDef plugin_QQuaternion = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QQuaternion = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QQuaternion,
        {0},
        &plugin_QQuaternion
    },
    {
        sipNameNr_QQuaternion,
        {0, 0, 1},
        35, methods_QQuaternion,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QQuaternion,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QQuaternion,
    0,
    0
};

#line 326 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 78060 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 78064 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 78067 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 78070 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 78073 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 78076 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 78079 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPolygonF_translate, "translate(self, Union[QPointF, QPoint])\n"
    "translate(self, 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, "toPolygon(self) -> 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, "isClosed(self) -> 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, "boundingRect(self) -> 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, "containsPoint(self, Union[QPointF, QPoint], 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, "united(self, 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, "intersected(self, 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, "subtracted(self, 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, "translated(self, Union[QPointF, QPoint]) -> QPolygonF\n"
    "translated(self, 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, "append(self, Union[QPointF, QPoint])");

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, "at(self, 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, "clear(self)");

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, "contains(self, Union[QPointF, QPoint]) -> 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, "count(self, Union[QPointF, QPoint]) -> int\n"
    "count(self) -> 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, "data(self) -> 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, "fill(self, Union[QPointF, QPoint], size: int = -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, "first(self) -> 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, "indexOf(self, Union[QPointF, QPoint], from_: int = 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, "insert(self, int, Union[QPointF, QPoint])");

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, "isEmpty(self) -> 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, "last(self) -> 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, "lastIndexOf(self, Union[QPointF, QPoint], from_: int = -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, "mid(self, int, length: int = -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, "prepend(self, Union[QPointF, QPoint])");

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, "remove(self, int)\n"
    "remove(self, 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, "replace(self, int, Union[QPointF, QPoint])");

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, "size(self) -> 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, "value(self, int) -> QPointF\n"
    "value(self, int, Union[QPointF, QPoint]) -> 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, "swap(self, 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 514 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
// It looks like you can't assign QBool to int.
sipRes = bool(sipCpp->contains(*a0));
#line 79088 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 458 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
int len;

len = sipCpp->count();

if ((a0 = (int)sipConvertFromSequenceIndex(a0, len)) < 0)
    sipIsErr = 1;
else
    sipCpp->remove(a0);
#line 79128 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1T", &PySlice_Type, &a0))
        {
            int sipIsErr = 0;

#line 470 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
Py_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 79161 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 411 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
int len;

len = sipCpp->count();

if ((a0 = (int)sipConvertFromSequenceIndex(a0, len)) < 0)
    sipIsErr = 1;
else
    (*sipCpp)[a0] = *a1;
#line 79205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 423 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
Py_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 79255 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 399 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
Py_ssize_t idx = sipConvertFromSequenceIndex(a0, sipCpp->count());

if (idx < 0)
    sipIsErr = 1;
else
    sipRes = new QPointF(sipCpp->operator[]((int)idx));
#line 79296 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 490 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
Py_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 79334 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 391 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
    *a0 << *a1;

    sipRes = sipArg0;
    Py_INCREF(sipRes);
#line 79369 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 79537 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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 (sipIsOwnedByPython(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(Iterable[Union[QPointF, QPoint]])\n"
    "QPolygonF(QRectF)\n"
    "QPolygonF(QPolygon)\n"
    "QPolygonF(int)");


static pyqt5ClassPluginDef plugin_QPolygonF = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPolygonF = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPolygonF,
        {0},
        &plugin_QPolygonF
    },
    {
        sipNameNr_QPolygonF,
        {0, 0, 1},
        29, methods_QPolygonF,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPolygonF,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 79778 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 79782 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 79785 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 79788 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 79791 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 79794 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 79797 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_Size(l)];

    for (Py_ssize_t i = 0; i < PyList_Size(l); ++i)
    {
        coords[i] = SIPLong_AsLong(PyList_GetItem(l, i));

        if (PyErr_Occurred() != NULL)
        {
            delete[] coords;
            return false;
        }
    }

    poly->setPoints(PyList_Size(l) >> 1, coords);

    delete[] coords;
    return true;
}
#line 79820 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPolygon_translate, "translate(self, int, int)\n"
    "translate(self, 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, "boundingRect(self) -> 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, "point(self, 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, "setPoints(self, List[int])\n"
    "setPoints(self, 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 101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
        if (!setPointsFromList(sipCpp, a0))
            sipIsErr = 1;
#line 79945 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 107 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
        // Accept at least one pair of integer coordinates.
        int nPoints = 1 + ((PyTuple_Size(a2) + 1) >> 1);
        
        int *points = new int[nPoints * 2];
        
        points[0] = a0;
        points[1] = a1;
        
        for (Py_ssize_t i = 0; i < PyTuple_Size(a2); ++i)
            points[2 + i] = SIPLong_AsLong(PyTuple_GetItem(a2, i));
        
        sipCpp->setPoints(nPoints, points);
        
        delete[] points;
#line 79978 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "putPoints(self, int, int, int, *)\n"
    "putPoints(self, int, int, QPolygon, from_: int = 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 125 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
        // Accept at least one pair of integer coordinates.
        int nPoints = 1 + ((PyTuple_Size(a3) + 1) >> 1);
        
        int *points = new int[nPoints * 2];
        
        points[0] = a1;
        points[1] = a2;
        
        for (Py_ssize_t i = 0; i < PyTuple_Size(a3); ++i)
            points[2 + i] = SIPLong_AsLong(PyTuple_GetItem(a3, i));
        
        sipCpp->putPoints(a0, nPoints, points);
        
        delete[] points;
#line 80028 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "setPoint(self, int, QPoint)\n"
    "setPoint(self, 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, "containsPoint(self, 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, "united(self, 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, "intersected(self, 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, "subtracted(self, 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, "translated(self, int, int) -> QPolygon\n"
    "translated(self, 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, "append(self, 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, "at(self, 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, "clear(self)");

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, "contains(self, 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, "count(self, QPoint) -> int\n"
    "count(self) -> 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, "data(self) -> 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, "fill(self, QPoint, size: int = -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, "first(self) -> 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, "indexOf(self, QPoint, from_: int = 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, "insert(self, 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, "isEmpty(self) -> 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, "last(self) -> 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, "lastIndexOf(self, QPoint, from_: int = -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, "mid(self, int, length: int = -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, "prepend(self, 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, "remove(self, int)\n"
    "remove(self, 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, "replace(self, 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, "size(self) -> 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, "value(self, int) -> QPoint\n"
    "value(self, 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, "swap(self, 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 317 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
// It looks like you can't assign QBool to int.
sipRes = bool(sipCpp->contains(*a0));
#line 80964 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 261 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
int len;

len = sipCpp->count();

if ((a0 = (int)sipConvertFromSequenceIndex(a0, len)) < 0)
    sipIsErr = 1;
else
    sipCpp->remove(a0);
#line 81003 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1T", &PySlice_Type, &a0))
        {
            int sipIsErr = 0;

#line 273 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
Py_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 81036 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 214 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
int len;

len = sipCpp->count();

if ((a0 = (int)sipConvertFromSequenceIndex(a0, len)) < 0)
    sipIsErr = 1;
else
    (*sipCpp)[a0] = *a1;
#line 81079 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 226 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
Py_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 81128 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 202 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
Py_ssize_t idx = sipConvertFromSequenceIndex(a0, sipCpp->count());

if (idx < 0)
    sipIsErr = 1;
else
    sipRes = new QPoint(sipCpp->operator[]((int)idx));
#line 81169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 293 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
Py_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 81207 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 194 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
    *a0 << *a1;

    sipRes = sipArg0;
    Py_INCREF(sipRes);
#line 81241 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 81406 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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 54 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_SetItem(pl, p, SIPLong_FromLong(x));
        PyList_SetItem(pl, p + 1, SIPLong_FromLong(y));
    }
    
    sipRes = Py_BuildValue((char *)"(N)", pl);
#line 81444 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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 78 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
        sipCpp = new QPolygon();
        
        if (!setPointsFromList(sipCpp, a0))
        {
            delete sipCpp;
            sipCpp = 0;
            sipIsErr = 1;
        }
#line 81563 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 90 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
        if (a0->canConvert<QPolygon>())
            sipCpp = new QPolygon(a0->value<QPolygon>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 81594 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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(Iterable[QPoint])\n"
    "QPolygon(QRect, closed: bool = False)\n"
    "QPolygon(int)\n"
    "QPolygon(List[int])\n"
    "QPolygon(Any)");


static pyqt5ClassPluginDef plugin_QPolygon = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPolygon = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPolygon,
        {0},
        &plugin_QPolygon
    },
    {
        sipNameNr_QPolygon,
        {0, 0, 1},
        31, methods_QPolygon,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPolygon,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QPolygon,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 33 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 81738 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QPixmapCache_Key_swap, "swap(self, QPixmapCache.Key)");

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

    {
         ::QPixmapCache::Key* a0;
         ::QPixmapCache::Key *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPixmapCache_Key, &sipCpp, sipType_QPixmapCache_Key, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Key, sipName_swap, doc_QPixmapCache_Key_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmapCache_Key_isValid, "isValid(self) -> bool");

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

    {
        const  ::QPixmapCache::Key *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmapCache_Key, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Key, sipName_isValid, doc_QPixmapCache_Key_isValid);

    return NULL;
}


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);
}


/* 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 (sipIsOwnedByPython(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}
};


static PyMethodDef methods_QPixmapCache_Key[] = {
    {SIP_MLNAME_CAST(sipName_isValid), meth_QPixmapCache_Key_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmapCache_Key_isValid)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPixmapCache_Key_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmapCache_Key_swap)}
};

PyDoc_STRVAR(doc_QPixmapCache_Key, "\1QPixmapCache.Key()\n"
    "QPixmapCache.Key(QPixmapCache.Key)");


static pyqt5ClassPluginDef plugin_QPixmapCache_Key = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPixmapCache_Key = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPixmapCache__Key,
        {0},
        &plugin_QPixmapCache_Key
    },
    {
        sipNameNr_Key,
        {232, 255, 0},
        2, methods_QPixmapCache_Key,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPixmapCache_Key,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 82007 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 33 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 82013 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 82016 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 82019 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPixmapCache_cacheLimit, "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, "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, "find(str) -> QPixmap\n"
    "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 54 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
        sipRes = new QPixmap;
        
        if (!QPixmapCache::find(*a0, sipRes))
        {
            delete sipRes;
            sipRes = 0;
        }
#line 82099 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmapcache.sip"
        sipRes = new QPixmap;
        
        if (!QPixmapCache::find(*a0, sipRes))
        {
            delete sipRes;
            sipRes = 0;
        }
#line 82121 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "insert(str, QPixmap) -> bool\n"
    "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, "remove(str)\n"
    "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, "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, "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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QPixmapCache = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPixmapCache = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPixmapCache,
        {0},
        &plugin_QPixmapCache
    },
    {
        sipNameNr_QPixmapCache,
        {0, 0, 1},
        7, methods_QPixmapCache,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPixmapCache,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixelformat.sip"
#include <qpixelformat.h>
#line 82421 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QPixelFormat_colorModel, "colorModel(self) -> 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, "channelCount(self) -> 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, "redSize(self) -> 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, "greenSize(self) -> 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, "blueSize(self) -> 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, "cyanSize(self) -> 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, "magentaSize(self) -> 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, "yellowSize(self) -> 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, "blackSize(self) -> 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, "hueSize(self) -> 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, "saturationSize(self) -> 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, "lightnessSize(self) -> 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, "brightnessSize(self) -> 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, "alphaSize(self) -> 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, "bitsPerPixel(self) -> 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, "alphaUsage(self) -> 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, "alphaPosition(self) -> 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, "premultiplied(self) -> 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, "typeInterpretation(self) -> 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, "byteOrder(self) -> 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, "yuvLayout(self) -> 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, "subEnum(self) -> 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);
}


/* 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 (sipIsOwnedByPython(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_Alpha, static_cast<int>( ::QPixelFormat::Alpha), 228},
    {sipName_AtBeginning, static_cast<int>( ::QPixelFormat::AtBeginning), 224},
    {sipName_AtEnd, static_cast<int>( ::QPixelFormat::AtEnd), 224},
    {sipName_BGR, static_cast<int>( ::QPixelFormat::BGR), 228},
    {sipName_BigEndian, static_cast<int>( ::QPixelFormat::BigEndian), 227},
    {sipName_CMYK, static_cast<int>( ::QPixelFormat::CMYK), 228},
    {sipName_CurrentSystemEndian, static_cast<int>( ::QPixelFormat::CurrentSystemEndian), 227},
    {sipName_FloatingPoint, static_cast<int>( ::QPixelFormat::FloatingPoint), 229},
    {sipName_Grayscale, static_cast<int>( ::QPixelFormat::Grayscale), 228},
    {sipName_HSL, static_cast<int>( ::QPixelFormat::HSL), 228},
    {sipName_HSV, static_cast<int>( ::QPixelFormat::HSV), 228},
    {sipName_IMC1, static_cast<int>( ::QPixelFormat::IMC1), 230},
    {sipName_IMC2, static_cast<int>( ::QPixelFormat::IMC2), 230},
    {sipName_IMC3, static_cast<int>( ::QPixelFormat::IMC3), 230},
    {sipName_IMC4, static_cast<int>( ::QPixelFormat::IMC4), 230},
    {sipName_IgnoresAlpha, static_cast<int>( ::QPixelFormat::IgnoresAlpha), 226},
    {sipName_Indexed, static_cast<int>( ::QPixelFormat::Indexed), 228},
    {sipName_LittleEndian, static_cast<int>( ::QPixelFormat::LittleEndian), 227},
    {sipName_NV12, static_cast<int>( ::QPixelFormat::NV12), 230},
    {sipName_NV21, static_cast<int>( ::QPixelFormat::NV21), 230},
    {sipName_NotPremultiplied, static_cast<int>( ::QPixelFormat::NotPremultiplied), 225},
    {sipName_Premultiplied, static_cast<int>( ::QPixelFormat::Premultiplied), 225},
    {sipName_RGB, static_cast<int>( ::QPixelFormat::RGB), 228},
    {sipName_UYVY, static_cast<int>( ::QPixelFormat::UYVY), 230},
    {sipName_UnsignedByte, static_cast<int>( ::QPixelFormat::UnsignedByte), 229},
    {sipName_UnsignedInteger, static_cast<int>( ::QPixelFormat::UnsignedInteger), 229},
    {sipName_UnsignedShort, static_cast<int>( ::QPixelFormat::UnsignedShort), 229},
    {sipName_UsesAlpha, static_cast<int>( ::QPixelFormat::UsesAlpha), 226},
    {sipName_Y16, static_cast<int>( ::QPixelFormat::Y16), 230},
    {sipName_Y8, static_cast<int>( ::QPixelFormat::Y8), 230},
    {sipName_YUV, static_cast<int>( ::QPixelFormat::YUV), 228},
    {sipName_YUV411, static_cast<int>( ::QPixelFormat::YUV411), 230},
    {sipName_YUV420P, static_cast<int>( ::QPixelFormat::YUV420P), 230},
    {sipName_YUV420SP, static_cast<int>( ::QPixelFormat::YUV420SP), 230},
    {sipName_YUV422, static_cast<int>( ::QPixelFormat::YUV422), 230},
    {sipName_YUV444, static_cast<int>( ::QPixelFormat::YUV444), 230},
    {sipName_YUYV, static_cast<int>( ::QPixelFormat::YUYV), 230},
    {sipName_YV12, static_cast<int>( ::QPixelFormat::YV12), 230},
};

PyDoc_STRVAR(doc_QPixelFormat, "\1QPixelFormat()\n"
    "QPixelFormat(QPixelFormat.ColorModel, int, int, int, int, int, int, QPixelFormat.AlphaUsage, QPixelFormat.AlphaPosition, QPixelFormat.AlphaPremultiplied, QPixelFormat.TypeInterpretation, byteOrder: QPixelFormat.ByteOrder = QPixelFormat.CurrentSystemEndian, subEnum: int = 0)\n"
    "QPixelFormat(QPixelFormat)");


static pyqt5ClassPluginDef plugin_QPixelFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPixelFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPixelFormat,
        {0},
        &plugin_QPixelFormat
    },
    {
        sipNameNr_QPixelFormat,
        {0, 0, 1},
        22, methods_QPixelFormat,
        38, enummembers_QPixelFormat,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPixelFormat,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 83411 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 83415 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 83418 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 83421 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 83424 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 83427 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 83476 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPictureIO_picture, "picture(self) -> 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, "status(self) -> 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, "format(self) -> 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 SIPBytes_FromString(sipRes);
        }
    }

    /* 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, "ioDevice(self) -> 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, "fileName(self) -> 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, "quality(self) -> 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, "description(self) -> 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, "parameters(self) -> 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 SIPBytes_FromString(sipRes);
        }
    }

    /* 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, "gamma(self) -> 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, "setPicture(self, 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, "setStatus(self, 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, "setFormat(self, 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;
         ::QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bs", &sipSelf, sipType_QPictureIO, &sipCpp, &a0))
        {
            sipCpp->setFormat(a0);

            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, "setIODevice(self, 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, "setFileName(self, 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, "setQuality(self, 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, "setDescription(self, 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, "setParameters(self, 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;
         ::QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bs", &sipSelf, sipType_QPictureIO, &sipCpp, &a0))
        {
            sipCpp->setParameters(a0);

            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, "setGamma(self, 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, "read(self) -> 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, "write(self) -> 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, "pictureFormat(str) -> QByteArray\n"
    "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, "inputFormats() -> List[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, "outputFormats() -> List[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, "defineIOHandler(str, str, str, Optional[Callable[[], None]], Optional[Callable[[], None]])");

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

    {
        const char* a0;
        const char* a1;
        const char* a2;
        PyObject * a3;
        PyObject * a4;

        if (sipParseArgs(&sipParseErr, sipArgs, "sssHH", &a0, &a1, &a2, &a3, &a4))
        {
#line 143 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 84211 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            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;
}


/* 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 (sipIsOwnedByPython(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;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8s", sipType_QIODevice, &a0, &a1))
        {
            sipCpp = new  ::QPictureIO(a0,a1);

            return sipCpp;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
        const char* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1s", sipType_QString,&a0, &a0State, &a1))
        {
            sipCpp = new  ::QPictureIO(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            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)");


static pyqt5ClassPluginDef plugin_QPictureIO = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPictureIO = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPictureIO,
        {0},
        &plugin_QPictureIO
    },
    {
        sipNameNr_QPictureIO,
        {0, 0, 1},
        24, methods_QPictureIO,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPictureIO,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 84379 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 84383 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 84386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 84389 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 84392 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 84395 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 84398 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    void setData(const char*,uint);
    int devType() const;
     ::QPaintEngine* paintEngine() const;
    int metric( ::QPaintDevice::PaintDeviceMetric) 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()
{
    sipInstanceDestroyed(sipPySelf);
}

void sipQPicture::setData(const char*a0,uint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
    {
         ::QPicture::setData(a0,a1);
        return;
    }

    extern void sipVH_QtGui_75(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,uint);

    sipVH_QtGui_75(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

int sipQPicture::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return  ::QPicture::devType();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QPaintEngine* sipQPicture::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return  ::QPicture::paintEngine();

    extern  ::QPaintEngine* sipVH_QtGui_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipQPicture::metric( ::QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return  ::QPicture::metric(a0);

    extern int sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipQPicture::sipProtectVirt_metric(bool sipSelfWasArg, ::QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ?  ::QPicture::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QPicture_isNull, "isNull(self) -> 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, "devType(self) -> 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 || sipIsDerivedClass((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, "size(self) -> 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, "data(self) -> 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, "setData(self, bytes)");

extern "C" {static PyObject *meth_QPicture_setData(PyObject *, PyObject *);}
static PyObject *meth_QPicture_setData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "play(self, 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, "load(self, QIODevice, format: str = None) -> bool\n"
    "load(self, str, format: str = 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;
         ::QPicture *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|s", &sipSelf, sipType_QPicture, &sipCpp, sipType_QIODevice, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
        const char* a1 = 0;
         ::QPicture *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|s", &sipSelf, sipType_QPicture, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(*a0,a1);
            Py_END_ALLOW_THREADS
            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_QPicture, sipName_load, doc_QPicture_load);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_save, "save(self, QIODevice, format: str = None) -> bool\n"
    "save(self, str, format: str = 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;
         ::QPicture *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|s", &sipSelf, sipType_QPicture, &sipCpp, sipType_QIODevice, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->save(a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
        const char* a1 = 0;
         ::QPicture *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|s", &sipSelf, sipType_QPicture, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->save(*a0,a1);
            Py_END_ALLOW_THREADS
            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_QPicture, sipName_save, doc_QPicture_save);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_boundingRect, "boundingRect(self) -> 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, "setBoundingRect(self, 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, "detach(self)");

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, "isDetached(self) -> 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, "paintEngine(self) -> 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 || sipIsDerivedClass((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, "metric(self, 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 || sipIsDerivedClass((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, "swap(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QPicture(void *, const sipTypeDef *);}
static void *cast_QPicture(void *sipCppV, const sipTypeDef *targetType)
{
     ::QPicture *sipCpp = reinterpret_cast< ::QPicture *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQPicture *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPicture(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{191, 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(formatVersion: int = -1)\n"
    "QPicture(QPicture)");


static pyqt5ClassPluginDef plugin_QPicture = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPicture = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPicture,
        {0},
        &plugin_QPicture
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 85203 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 85207 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 85210 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 85213 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 239 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 85216 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 85219 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPen_style, "style(self) -> 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, "setStyle(self, 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, "widthF(self) -> 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, "setWidthF(self, 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, "width(self) -> 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, "setWidth(self, 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, "color(self) -> 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, "setColor(self, Union[QColor, Qt.GlobalColor, QGradient])");

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, "brush(self) -> 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, "setBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "isSolid(self) -> 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, "capStyle(self) -> 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, "setCapStyle(self, 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, "joinStyle(self) -> 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, "setJoinStyle(self, 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, "dashPattern(self) -> List[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, "setDashPattern(self, Iterable[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, "miterLimit(self) -> 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, "setMiterLimit(self, 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, "dashOffset(self) -> 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, "setDashOffset(self, 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, "isCosmetic(self) -> 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, "setCosmetic(self, 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, "swap(self, QPen)");

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

    {
         ::QPen* a0;
         ::QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPen, &sipCpp, sipType_QPen, &a0))
        {
            sipCpp->swap(*a0);

            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);
}


/* 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 (sipIsOwnedByPython(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  ::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 67 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
        if (a0->canConvert<QPen>())
            sipCpp = new QPen(a0->value<QPen>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 86084 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 86140 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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(Union[QBrush, QColor, Qt.GlobalColor, QGradient], float, style: Qt.PenStyle = Qt.SolidLine, cap: Qt.PenCapStyle = Qt.SquareCap, join: Qt.PenJoinStyle = Qt.BevelJoin)\n"
    "QPen(Union[QPen, QColor, Qt.GlobalColor, QGradient])\n"
    "QPen(Any)");


static pyqt5ClassPluginDef plugin_QPen = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPen = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPen,
        {0},
        &plugin_QPen
    },
    {
        sipNameNr_QPen,
        {0, 0, 1},
        24, methods_QPen,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPen,
    -1,
    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,
    0,
    convertTo_QPen,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpdfwriter.sip"
#include <qpdfwriter.h>
#line 86246 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 86250 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 86253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 86256 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 86259 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 86264 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 86267 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 86270 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 86273 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 86276 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 86279 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 86282 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 86285 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 86288 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 86291 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 86294 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 86297 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 86300 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 86303 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 86306 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 86309 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 86312 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 86315 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 86318 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 115 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 86321 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    int metric( ::QPaintDevice::PaintDeviceMetric) const;
     ::QPaintEngine* paintEngine() const;
    bool newPage();
    void setPageSize( ::QPagedPaintDevice::PageSize);
    void setPageSizeMM(const  ::QSizeF&);
    void setMargins(const  ::QPagedPaintDevice::Margins&);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQPdfWriter::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QPdfWriter);

    return  ::QPdfWriter::metaObject();
}

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));
}

int sipQPdfWriter::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  ::QPdfWriter::metric(a0);

    extern int sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QPaintEngine* sipQPdfWriter::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return  ::QPdfWriter::paintEngine();

    extern  ::QPaintEngine* sipVH_QtGui_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQPdfWriter::newPage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_newPage);

    if (!sipMeth)
        return  ::QPdfWriter::newPage();

    extern bool sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_28(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQPdfWriter::setPageSize( ::QPagedPaintDevice::PageSize a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_setPageSize);

    if (!sipMeth)
    {
         ::QPdfWriter::setPageSize(a0);
        return;
    }

    extern void sipVH_QtGui_54(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPagedPaintDevice::PageSize);

    sipVH_QtGui_54(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::setPageSizeMM(const  ::QSizeF& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_setPageSizeMM);

    if (!sipMeth)
    {
         ::QPdfWriter::setPageSizeMM(a0);
        return;
    }

    extern void sipVH_QtGui_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QSizeF&);

    sipVH_QtGui_55(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::setMargins(const  ::QPagedPaintDevice::Margins& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_setMargins);

    if (!sipMeth)
    {
         ::QPdfWriter::setMargins(a0);
        return;
    }

    extern void sipVH_QtGui_56(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPagedPaintDevice::Margins&);

    sipVH_QtGui_56(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQPdfWriter::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QPdfWriter::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQPdfWriter::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QPdfWriter::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QPdfWriter::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QPdfWriter::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QPdfWriter::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QPdfWriter::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 86738 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 86798 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "title(self) -> 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, "setTitle(self, 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, "creator(self) -> 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, "setCreator(self, 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, "newPage(self) -> 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 || sipIsDerivedClass((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, "setPageSize(self, 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 || sipIsDerivedClass((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, "setPageSizeMM(self, 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 || sipIsDerivedClass((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, "setMargins(self, 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 || sipIsDerivedClass((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, "paintEngine(self) -> 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 || sipIsDerivedClass((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, "metric(self, 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 || sipIsDerivedClass((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, "setResolution(self, 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, "resolution(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QPdfWriter(void *, const sipTypeDef *);}
static void *cast_QPdfWriter(void *sipCppV, const sipTypeDef *targetType)
{
     ::QPdfWriter *sipCpp = reinterpret_cast< ::QPdfWriter *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_QPagedPaintDevice)
        return static_cast< ::QPagedPaintDevice *>(sipCpp);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQPdfWriter *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPdfWriter(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 0, 0}, {188, 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)");


static pyqt5ClassPluginDef plugin_QPdfWriter = {
    & ::QPdfWriter::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPdfWriter = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPdfWriter,
        {0},
        &plugin_QPdfWriter
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 87542 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 87546 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 87549 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 87552 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 87555 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPalette_currentColorGroup, "currentColorGroup(self) -> 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, "setCurrentColorGroup(self, 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, "color(self, QPalette.ColorGroup, QPalette.ColorRole) -> QColor\n"
    "color(self, 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, "brush(self, QPalette.ColorGroup, QPalette.ColorRole) -> QBrush\n"
    "brush(self, 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, "setBrush(self, QPalette.ColorGroup, QPalette.ColorRole, Union[QBrush, QColor, Qt.GlobalColor, QGradient])\n"
    "setBrush(self, QPalette.ColorRole, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "setColorGroup(self, QPalette.ColorGroup, Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "isEqual(self, 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, "windowText(self) -> 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, "button(self) -> 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, "light(self) -> 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, "dark(self) -> 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, "mid(self) -> 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, "text(self) -> 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, "base(self) -> 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, "alternateBase(self) -> 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, "window(self) -> 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, "midlight(self) -> 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, "brightText(self) -> 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, "buttonText(self) -> 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, "shadow(self) -> 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, "highlight(self) -> 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, "highlightedText(self) -> 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, "link(self) -> 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, "linkVisited(self) -> 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, "toolTipBase(self) -> 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, "toolTipText(self) -> 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, "isCopyOf(self, 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, "resolve(self, QPalette) -> QPalette\n"
    "resolve(self) -> int\n"
    "resolve(self, 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, "setColor(self, QPalette.ColorGroup, QPalette.ColorRole, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "setColor(self, QPalette.ColorRole, Union[QColor, Qt.GlobalColor, QGradient])");

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, "isBrushSet(self, 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, "cacheKey(self) -> 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, "swap(self, 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);
}


/* 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 (sipIsOwnedByPython(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 38 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpalette.sip"
        if (a0->canConvert<QPalette>())
            sipCpp = new QPalette(a0->value<QPalette>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 88816 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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), 217},
    {sipName_All, static_cast<int>( ::QPalette::All), 217},
    {sipName_AlternateBase, static_cast<int>( ::QPalette::AlternateBase), 218},
    {sipName_Background, static_cast<int>( ::QPalette::Background), 218},
    {sipName_Base, static_cast<int>( ::QPalette::Base), 218},
    {sipName_BrightText, static_cast<int>( ::QPalette::BrightText), 218},
    {sipName_Button, static_cast<int>( ::QPalette::Button), 218},
    {sipName_ButtonText, static_cast<int>( ::QPalette::ButtonText), 218},
    {sipName_Current, static_cast<int>( ::QPalette::Current), 217},
    {sipName_Dark, static_cast<int>( ::QPalette::Dark), 218},
    {sipName_Disabled, static_cast<int>( ::QPalette::Disabled), 217},
    {sipName_Foreground, static_cast<int>( ::QPalette::Foreground), 218},
    {sipName_Highlight, static_cast<int>( ::QPalette::Highlight), 218},
    {sipName_HighlightedText, static_cast<int>( ::QPalette::HighlightedText), 218},
    {sipName_Inactive, static_cast<int>( ::QPalette::Inactive), 217},
    {sipName_Light, static_cast<int>( ::QPalette::Light), 218},
    {sipName_Link, static_cast<int>( ::QPalette::Link), 218},
    {sipName_LinkVisited, static_cast<int>( ::QPalette::LinkVisited), 218},
    {sipName_Mid, static_cast<int>( ::QPalette::Mid), 218},
    {sipName_Midlight, static_cast<int>( ::QPalette::Midlight), 218},
    {sipName_NColorGroups, static_cast<int>( ::QPalette::NColorGroups), 217},
    {sipName_NColorRoles, static_cast<int>( ::QPalette::NColorRoles), 218},
    {sipName_NoRole, static_cast<int>( ::QPalette::NoRole), 218},
    {sipName_Normal, static_cast<int>( ::QPalette::Normal), 217},
    {sipName_Shadow, static_cast<int>( ::QPalette::Shadow), 218},
    {sipName_Text, static_cast<int>( ::QPalette::Text), 218},
    {sipName_ToolTipBase, static_cast<int>( ::QPalette::ToolTipBase), 218},
    {sipName_ToolTipText, static_cast<int>( ::QPalette::ToolTipText), 218},
    {sipName_Window, static_cast<int>( ::QPalette::Window), 218},
    {sipName_WindowText, static_cast<int>( ::QPalette::WindowText), 218},
};

PyDoc_STRVAR(doc_QPalette, "\1QPalette()\n"
    "QPalette(Union[QColor, Qt.GlobalColor, QGradient])\n"
    "QPalette(Qt.GlobalColor)\n"
    "QPalette(Union[QColor, Qt.GlobalColor, QGradient], Union[QColor, Qt.GlobalColor, QGradient])\n"
    "QPalette(Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient], Union[QBrush, QColor, Qt.GlobalColor, QGradient])\n"
    "QPalette(QPalette)\n"
    "QPalette(Any)");


static pyqt5ClassPluginDef plugin_QPalette = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPalette = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPalette,
        {0},
        &plugin_QPalette
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 151 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 88983 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 88987 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 88990 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 239 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 88993 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 88996 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainterPathStroker_setWidth, "setWidth(self, 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, "width(self) -> 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, "setCapStyle(self, 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, "capStyle(self) -> 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, "setJoinStyle(self, 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, "joinStyle(self) -> 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, "setMiterLimit(self, 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, "miterLimit(self) -> 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, "setCurveThreshold(self, 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, "curveThreshold(self) -> 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, "setDashPattern(self, Qt.PenStyle)\n"
    "setDashPattern(self, Iterable[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, "dashPattern(self) -> List[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, "createStroke(self, 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, "setDashOffset(self, 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, "dashOffset(self) -> 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;
}


/* 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 (sipIsOwnedByPython(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(Union[QPen, QColor, Qt.GlobalColor, QGradient])");


static pyqt5ClassPluginDef plugin_QPainterPathStroker = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPainterPathStroker = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPainterPathStroker,
        {0},
        &plugin_QPainterPathStroker
    },
    {
        sipNameNr_QPainterPathStroker,
        {0, 0, 1},
        15, methods_QPainterPathStroker,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainterPathStroker,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 41 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 89570 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 89574 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainterPath_Element_isMoveTo, "isMoveTo(self) -> 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, "isLineTo(self) -> 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, "isCurveTo(self) -> 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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QPainterPath_Element = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPainterPath_Element = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPainterPath__Element,
        {0},
        &plugin_QPainterPath_Element
    },
    {
        sipNameNr_Element,
        {210, 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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 89964 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 89968 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 89971 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 89974 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 89977 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 41 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 89982 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 326 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 89985 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 89988 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 89991 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 89994 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 89997 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainterPath_closeSubpath, "closeSubpath(self)");

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, "moveTo(self, Union[QPointF, QPoint])\n"
    "moveTo(self, 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, "lineTo(self, Union[QPointF, QPoint])\n"
    "lineTo(self, 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, "arcTo(self, QRectF, float, float)\n"
    "arcTo(self, 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, "cubicTo(self, Union[QPointF, QPoint], Union[QPointF, QPoint], Union[QPointF, QPoint])\n"
    "cubicTo(self, 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, "quadTo(self, Union[QPointF, QPoint], Union[QPointF, QPoint])\n"
    "quadTo(self, 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, "currentPosition(self) -> 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, "addRect(self, QRectF)\n"
    "addRect(self, 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, "addEllipse(self, QRectF)\n"
    "addEllipse(self, float, float, float, float)\n"
    "addEllipse(self, Union[QPointF, QPoint], 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, "addPolygon(self, 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, "addText(self, Union[QPointF, QPoint], QFont, str)\n"
    "addText(self, 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, "addPath(self, 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, "addRegion(self, 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, "connectPath(self, 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, "contains(self, Union[QPointF, QPoint]) -> bool\n"
    "contains(self, QRectF) -> bool\n"
    "contains(self, 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, "intersects(self, QRectF) -> bool\n"
    "intersects(self, 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, "boundingRect(self) -> 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, "controlPointRect(self) -> 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, "fillRule(self) -> 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, "setFillRule(self, 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, "toReversed(self) -> 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_toSubpathPolygons, "toSubpathPolygons(self) -> object\n"
    "toSubpathPolygons(self, QTransform) -> List[QPolygonF]");

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

    {
        const  ::QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            QList< ::QPolygonF>*sipRes = 0;

#line 84 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
        sipRes = new QList<QPolygonF>(sipCpp->toSubpathPolygons());
#line 90848 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromNewType(sipRes,sipType_QList_0100QPolygonF,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, "toFillPolygons(self) -> List[QPolygonF]\n"
    "toFillPolygons(self, QTransform) -> List[QPolygonF]");

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

    {
        const  ::QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            QList< ::QPolygonF>*sipRes = 0;

#line 89 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
        sipRes = new QList<QPolygonF>(sipCpp->toFillPolygons());
#line 90894 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromNewType(sipRes,sipType_QList_0100QPolygonF,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, "toFillPolygon(self) -> QPolygonF\n"
    "toFillPolygon(self, QTransform) -> QPolygonF");

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

    {
        const  ::QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
             ::QPolygonF*sipRes = 0;

#line 94 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
        sipRes = new QPolygonF(sipCpp->toFillPolygon());
#line 90940 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,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_arcMoveTo, "arcMoveTo(self, QRectF, float)\n"
    "arcMoveTo(self, 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, "isEmpty(self) -> 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, "elementCount(self) -> 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, "elementAt(self, 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, "setElementPositionAt(self, 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_length, "length(self) -> 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, "percentAtLength(self, 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, "pointAtPercent(self, 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, "angleAtPercent(self, 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, "slopeAtPercent(self, 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, "united(self, 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, "intersected(self, 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, "subtracted(self, 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, "addRoundedRect(self, QRectF, float, float, mode: Qt.SizeMode = Qt.AbsoluteSize)\n"
    "addRoundedRect(self, float, float, float, float, float, float, mode: Qt.SizeMode = 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, "simplified(self) -> 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, "translate(self, float, float)\n"
    "translate(self, Union[QPointF, QPoint])");

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, "translated(self, float, float) -> QPainterPath\n"
    "translated(self, Union[QPointF, QPoint]) -> 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, "swap(self, 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);
}


/* 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 (sipIsOwnedByPython(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), 212},
    {sipName_CurveToElement, static_cast<int>( ::QPainterPath::CurveToElement), 212},
    {sipName_LineToElement, static_cast<int>( ::QPainterPath::LineToElement), 212},
    {sipName_MoveToElement, static_cast<int>( ::QPainterPath::MoveToElement), 212},
};

PyDoc_STRVAR(doc_QPainterPath, "\1QPainterPath()\n"
    "QPainterPath(Union[QPointF, QPoint])\n"
    "QPainterPath(QPainterPath)");


static pyqt5ClassPluginDef plugin_QPainterPath = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPainterPath = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPainterPath,
        {0},
        &plugin_QPainterPath
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 174 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 92159 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 92163 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 92166 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 92169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 92172 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 92175 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 92178 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 92181 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 92184 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 92187 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 92190 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 92193 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPaintEngineState_state, "state(self) -> 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, "pen(self) -> 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, "brush(self) -> 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, "brushOrigin(self) -> 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, "backgroundBrush(self) -> 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, "backgroundMode(self) -> 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, "font(self) -> 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, "opacity(self) -> 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, "clipOperation(self) -> 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, "clipRegion(self) -> 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, "clipPath(self) -> 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, "isClipEnabled(self) -> 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, "renderHints(self) -> 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, "compositionMode(self) -> 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, "painter(self) -> 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, "transform(self) -> 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, "brushNeedsResolving(self) -> 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, "penNeedsResolving(self) -> 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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QPaintEngineState = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPaintEngineState = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPaintEngineState,
        {0},
        &plugin_QPaintEngineState
    },
    {
        sipNameNr_QPaintEngineState,
        {0, 0, 1},
        18, methods_QPaintEngineState,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintEngineState,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 92853 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 92857 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QPaintEngine_DirtyFlags___hash__(PyObject *);}
static long slot_QPaintEngine_DirtyFlags___hash__(PyObject *sipSelf)
{
     ::QPaintEngine::DirtyFlags *sipCpp = reinterpret_cast< ::QPaintEngine::DirtyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_DirtyFlags));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QPaintEngine::DirtyFlags::Int();
#line 92875 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::DirtyFlags::Int() != 0);
#line 92900 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::DirtyFlags::Int() != a0->operator QPaintEngine::DirtyFlags::Int());
#line 92930 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::DirtyFlags::Int() == a0->operator QPaintEngine::DirtyFlags::Int());
#line 92966 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QPaintEngine::DirtyFlags(*sipCpp ^ a0);
#line 93005 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QPaintEngine_DirtyFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QPaintEngine::DirtyFlags(*sipCpp | a0);
#line 93077 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QPaintEngine_DirtyFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QPaintEngine::DirtyFlags();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QPaintEngine::DirtyFlags(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 93345 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPaintEngine_DirtyFlags[] = {
    {(void *)slot_QPaintEngine_DirtyFlags___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___xor__, xor_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___ior__, ior_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___or__, or_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___iand__, iand_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___and__, and_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___invert__, invert_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QPaintEngine_DirtyFlags, "\1QPaintEngine.DirtyFlags()\n"
    "QPaintEngine.DirtyFlags(Union[QPaintEngine.DirtyFlags, QPaintEngine.DirtyFlag])\n"
    "QPaintEngine.DirtyFlags(QPaintEngine.DirtyFlags)");


static pyqt5ClassPluginDef plugin_QPaintEngine_DirtyFlags = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPaintEngine_DirtyFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPaintEngine__DirtyFlags,
        {0},
        &plugin_QPaintEngine_DirtyFlags
    },
    {
        sipNameNr_DirtyFlags,
        {194, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintEngine_DirtyFlags,
    -1,
    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,
    0,
    convertTo_QPaintEngine_DirtyFlags,
    0,
    0,
    0,
    0,
    0
};

#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 93431 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 93435 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QPaintEngine_PaintEngineFeatures___hash__(PyObject *);}
static long slot_QPaintEngine_PaintEngineFeatures___hash__(PyObject *sipSelf)
{
     ::QPaintEngine::PaintEngineFeatures *sipCpp = reinterpret_cast< ::QPaintEngine::PaintEngineFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_PaintEngineFeatures));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QPaintEngine::PaintEngineFeatures::Int();
#line 93453 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::PaintEngineFeatures::Int() != 0);
#line 93478 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::PaintEngineFeatures::Int() != a0->operator QPaintEngine::PaintEngineFeatures::Int());
#line 93508 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::PaintEngineFeatures::Int() == a0->operator QPaintEngine::PaintEngineFeatures::Int());
#line 93544 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QPaintEngine::PaintEngineFeatures(*sipCpp ^ a0);
#line 93583 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QPaintEngine_PaintEngineFeatures___xor__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QPaintEngine::PaintEngineFeatures(*sipCpp | a0);
#line 93655 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QPaintEngine_PaintEngineFeatures___or__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QPaintEngine::PaintEngineFeatures();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QPaintEngine::PaintEngineFeatures(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 93923 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPaintEngine_PaintEngineFeatures[] = {
    {(void *)slot_QPaintEngine_PaintEngineFeatures___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___xor__, xor_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___ior__, ior_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___or__, or_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___iand__, iand_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___and__, and_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___invert__, invert_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QPaintEngine_PaintEngineFeatures, "\1QPaintEngine.PaintEngineFeatures()\n"
    "QPaintEngine.PaintEngineFeatures(Union[QPaintEngine.PaintEngineFeatures, QPaintEngine.PaintEngineFeature])\n"
    "QPaintEngine.PaintEngineFeatures(QPaintEngine.PaintEngineFeatures)");


static pyqt5ClassPluginDef plugin_QPaintEngine_PaintEngineFeatures = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPaintEngine_PaintEngineFeatures = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPaintEngine__PaintEngineFeatures,
        {0},
        &plugin_QPaintEngine_PaintEngineFeatures
    },
    {
        sipNameNr_PaintEngineFeatures,
        {194, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintEngine_PaintEngineFeatures,
    -1,
    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,
    0,
    convertTo_QPaintEngine_PaintEngineFeatures,
    0,
    0,
    0,
    0,
    0
};

#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 94009 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 94013 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 94016 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 94019 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 94022 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 94025 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 94028 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 94031 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 94034 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 94037 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 94040 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 94043 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 94046 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qline.sip"
#include <qline.h>
#line 94049 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qline.sip"
#include <qline.h>
#line 94052 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 174 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 94055 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(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_74(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_74(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_73(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QRectF&,const  ::QImage&,const  ::QRectF&, ::Qt::ImageConversionFlags);

    sipVH_QtGui_73(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_72(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QRectF&,const  ::QPixmap&,const  ::QPointF&);

    sipVH_QtGui_72(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_71(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPointF&,const  ::QTextItem&);

    sipVH_QtGui_71(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_70(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QRectF&,const  ::QPixmap&,const  ::QRectF&);

    sipVH_QtGui_70(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_69(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPoint*,int, ::QPaintEngine::PolygonDrawMode);

    sipVH_QtGui_69(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_68(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPointF*,int, ::QPaintEngine::PolygonDrawMode);

    sipVH_QtGui_68(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_67(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPoint*,int);

    sipVH_QtGui_67(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPointF*,int);

    sipVH_QtGui_66(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_65(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPainterPath&);

    sipVH_QtGui_65(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_64(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QRect&);

    sipVH_QtGui_64(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_63(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QRectF&);

    sipVH_QtGui_63(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_62(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QLineF*,int);

    sipVH_QtGui_62(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_61(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QLine*,int);

    sipVH_QtGui_61(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_60(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QRectF*,int);

    sipVH_QtGui_60(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_59(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QRect*,int);

    sipVH_QtGui_59(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPaintEngineState&);

    sipVH_QtGui_58(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;

    extern bool sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_28(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_57(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice*);

    return sipVH_QtGui_57(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QPaintEngine_isActive, "isActive(self) -> 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, "setActive(self, 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, "begin(self, 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, "end(self) -> 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, "updateState(self, 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, "drawRects(self, QRect)\n"
    "drawRects(self, 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 || sipIsDerivedClass((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, "drawLines(self, QLine)\n"
    "drawLines(self, 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 || sipIsDerivedClass((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, "drawEllipse(self, QRectF)\n"
    "drawEllipse(self, 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 || sipIsDerivedClass((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, "drawPath(self, 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 || sipIsDerivedClass((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, "drawPoints(self, Union[QPointF, QPoint])\n"
    "drawPoints(self, 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 || sipIsDerivedClass((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, "drawPolygon(self, Union[QPointF, QPoint], QPaintEngine.PolygonDrawMode)\n"
    "drawPolygon(self, 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 || sipIsDerivedClass((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, "drawPixmap(self, 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, "drawTextItem(self, Union[QPointF, QPoint], 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 || sipIsDerivedClass((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, "drawTiledPixmap(self, QRectF, QPixmap, Union[QPointF, QPoint])");

extern "C" {static PyObject *meth_QPaintEngine_drawTiledPixmap(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawTiledPixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "drawImage(self, QRectF, QImage, QRectF, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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 || sipIsDerivedClass((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, "setPaintDevice(self, 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, "paintDevice(self) -> 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, "type(self) -> 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_painter, "painter(self) -> 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;
}


PyDoc_STRVAR(doc_QPaintEngine_hasFeature, "hasFeature(self, Union[QPaintEngine.PaintEngineFeatures, QPaintEngine.PaintEngineFeature]) -> 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;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQPaintEngine *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPaintEngine(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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 = QPaintEngine::PaintEngineFeatures();
         ::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), 195},
    {sipName_AllFeatures, static_cast<int>( ::QPaintEngine::AllFeatures), 197},
    {sipName_AlphaBlend, static_cast<int>( ::QPaintEngine::AlphaBlend), 197},
    {sipName_Antialiasing, static_cast<int>( ::QPaintEngine::Antialiasing), 197},
    {sipName_BlendModes, static_cast<int>( ::QPaintEngine::BlendModes), 197},
    {sipName_Blitter, static_cast<int>( ::QPaintEngine::Blitter), 200},
    {sipName_BrushStroke, static_cast<int>( ::QPaintEngine::BrushStroke), 197},
    {sipName_ConicalGradientFill, static_cast<int>( ::QPaintEngine::ConicalGradientFill), 197},
    {sipName_ConstantOpacity, static_cast<int>( ::QPaintEngine::ConstantOpacity), 197},
    {sipName_ConvexMode, static_cast<int>( ::QPaintEngine::ConvexMode), 199},
    {sipName_CoreGraphics, static_cast<int>( ::QPaintEngine::CoreGraphics), 200},
    {sipName_Direct2D, static_cast<int>( ::QPaintEngine::Direct2D), 200},
    {sipName_Direct3D, static_cast<int>( ::QPaintEngine::Direct3D), 200},
    {sipName_DirtyBackground, static_cast<int>( ::QPaintEngine::DirtyBackground), 195},
    {sipName_DirtyBackgroundMode, static_cast<int>( ::QPaintEngine::DirtyBackgroundMode), 195},
    {sipName_DirtyBrush, static_cast<int>( ::QPaintEngine::DirtyBrush), 195},
    {sipName_DirtyBrushOrigin, static_cast<int>( ::QPaintEngine::DirtyBrushOrigin), 195},
    {sipName_DirtyClipEnabled, static_cast<int>( ::QPaintEngine::DirtyClipEnabled), 195},
    {sipName_DirtyClipPath, static_cast<int>( ::QPaintEngine::DirtyClipPath), 195},
    {sipName_DirtyClipRegion, static_cast<int>( ::QPaintEngine::DirtyClipRegion), 195},
    {sipName_DirtyCompositionMode, static_cast<int>( ::QPaintEngine::DirtyCompositionMode), 195},
    {sipName_DirtyFont, static_cast<int>( ::QPaintEngine::DirtyFont), 195},
    {sipName_DirtyHints, static_cast<int>( ::QPaintEngine::DirtyHints), 195},
    {sipName_DirtyOpacity, static_cast<int>( ::QPaintEngine::DirtyOpacity), 195},
    {sipName_DirtyPen, static_cast<int>( ::QPaintEngine::DirtyPen), 195},
    {sipName_DirtyTransform, static_cast<int>( ::QPaintEngine::DirtyTransform), 195},
    {sipName_LinearGradientFill, static_cast<int>( ::QPaintEngine::LinearGradientFill), 197},
    {sipName_MacPrinter, static_cast<int>( ::QPaintEngine::MacPrinter), 200},
    {sipName_MaskedBrush, static_cast<int>( ::QPaintEngine::MaskedBrush), 197},
    {sipName_MaxUser, static_cast<int>( ::QPaintEngine::MaxUser), 200},
    {sipName_ObjectBoundingModeGradients, static_cast<int>( ::QPaintEngine::ObjectBoundingModeGradients), 197},
    {sipName_OddEvenMode, static_cast<int>( ::QPaintEngine::OddEvenMode), 199},
    {sipName_OpenGL, static_cast<int>( ::QPaintEngine::OpenGL), 200},
    {sipName_OpenGL2, static_cast<int>( ::QPaintEngine::OpenGL2), 200},
    {sipName_OpenVG, static_cast<int>( ::QPaintEngine::OpenVG), 200},
    {sipName_PaintBuffer, static_cast<int>( ::QPaintEngine::PaintBuffer), 200},
    {sipName_PaintOutsidePaintEvent, static_cast<int>( ::QPaintEngine::PaintOutsidePaintEvent), 197},
    {sipName_PainterPaths, static_cast<int>( ::QPaintEngine::PainterPaths), 197},
    {sipName_PatternBrush, static_cast<int>( ::QPaintEngine::PatternBrush), 197},
    {sipName_PatternTransform, static_cast<int>( ::QPaintEngine::PatternTransform), 197},
    {sipName_Pdf, static_cast<int>( ::QPaintEngine::Pdf), 200},
    {sipName_PerspectiveTransform, static_cast<int>( ::QPaintEngine::PerspectiveTransform), 197},
    {sipName_Picture, static_cast<int>( ::QPaintEngine::Picture), 200},
    {sipName_PixmapTransform, static_cast<int>( ::QPaintEngine::PixmapTransform), 197},
    {sipName_PolylineMode, static_cast<int>( ::QPaintEngine::PolylineMode), 199},
    {sipName_PorterDuff, static_cast<int>( ::QPaintEngine::PorterDuff), 197},
    {sipName_PostScript, static_cast<int>( ::QPaintEngine::PostScript), 200},
    {sipName_PrimitiveTransform, static_cast<int>( ::QPaintEngine::PrimitiveTransform), 197},
    {sipName_QWindowSystem, static_cast<int>( ::QPaintEngine::QWindowSystem), 200},
    {sipName_QuickDraw, static_cast<int>( ::QPaintEngine::QuickDraw), 200},
    {sipName_RadialGradientFill, static_cast<int>( ::QPaintEngine::RadialGradientFill), 197},
    {sipName_Raster, static_cast<int>( ::QPaintEngine::Raster), 200},
    {sipName_RasterOpModes, static_cast<int>( ::QPaintEngine::RasterOpModes), 197},
    {sipName_SVG, static_cast<int>( ::QPaintEngine::SVG), 200},
    {sipName_User, static_cast<int>( ::QPaintEngine::User), 200},
    {sipName_WindingMode, static_cast<int>( ::QPaintEngine::WindingMode), 199},
    {sipName_Windows, static_cast<int>( ::QPaintEngine::Windows), 200},
    {sipName_X11, static_cast<int>( ::QPaintEngine::X11), 200},
};

PyDoc_STRVAR(doc_QPaintEngine, "\1QPaintEngine(features: Union[QPaintEngine.PaintEngineFeatures, QPaintEngine.PaintEngineFeature] = QPaintEngine.PaintEngineFeatures())");


static pyqt5ClassPluginDef plugin_QPaintEngine = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPaintEngine = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPaintEngine,
        {0},
        &plugin_QPaintEngine
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 95360 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 95364 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QTextItem_RenderFlags___hash__(PyObject *);}
static long slot_QTextItem_RenderFlags___hash__(PyObject *sipSelf)
{
     ::QTextItem::RenderFlags *sipCpp = reinterpret_cast< ::QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QTextItem::RenderFlags::Int();
#line 95382 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextItem::RenderFlags::Int() != 0);
#line 95407 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextItem::RenderFlags::Int() != a0->operator QTextItem::RenderFlags::Int());
#line 95437 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextItem::RenderFlags::Int() == a0->operator QTextItem::RenderFlags::Int());
#line 95473 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QTextItem::RenderFlags(*sipCpp ^ a0);
#line 95512 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTextItem_RenderFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QTextItem::RenderFlags(*sipCpp | a0);
#line 95584 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QTextItem_RenderFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QTextItem::RenderFlags();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QTextItem::RenderFlags(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 95852 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextItem_RenderFlags[] = {
    {(void *)slot_QTextItem_RenderFlags___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QTextItem_RenderFlags___xor__, xor_slot},
    {(void *)slot_QTextItem_RenderFlags___ior__, ior_slot},
    {(void *)slot_QTextItem_RenderFlags___or__, or_slot},
    {(void *)slot_QTextItem_RenderFlags___iand__, iand_slot},
    {(void *)slot_QTextItem_RenderFlags___and__, and_slot},
    {(void *)slot_QTextItem_RenderFlags___invert__, invert_slot},
    {(void *)slot_QTextItem_RenderFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTextItem_RenderFlags, "\1QTextItem.RenderFlags()\n"
    "QTextItem.RenderFlags(Union[QTextItem.RenderFlags, QTextItem.RenderFlag])\n"
    "QTextItem.RenderFlags(QTextItem.RenderFlags)");


static pyqt5ClassPluginDef plugin_QTextItem_RenderFlags = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextItem_RenderFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextItem__RenderFlags,
        {0},
        &plugin_QTextItem_RenderFlags
    },
    {
        sipNameNr_RenderFlags,
        {317, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextItem_RenderFlags,
    -1,
    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,
    0,
    convertTo_QTextItem_RenderFlags,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 95938 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 95942 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 95945 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 95948 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextItem_descent, "descent(self) -> 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, "ascent(self) -> 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, "width(self) -> 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, "renderFlags(self) -> 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, "text(self) -> 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, "font(self) -> 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;
}


/* 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 (sipIsOwnedByPython(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), 318},
    {sipName_RightToLeft, static_cast<int>( ::QTextItem::RightToLeft), 318},
    {sipName_StrikeOut, static_cast<int>( ::QTextItem::StrikeOut), 318},
    {sipName_Underline, static_cast<int>( ::QTextItem::Underline), 318},
};

PyDoc_STRVAR(doc_QTextItem, "\1QTextItem()\n"
    "QTextItem(QTextItem)");


static pyqt5ClassPluginDef plugin_QTextItem = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTextItem = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextItem,
        {0},
        &plugin_QTextItem
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 96267 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 96271 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 96274 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 189 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 96277 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 96280 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 293 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96283 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96286 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96289 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96292 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96295 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 96298 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96301 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96304 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 372 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96307 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 400 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96310 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96313 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 96316 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 96319 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 96322 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 96325 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 96328 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 96331 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 96334 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 96337 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 96340 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 96343 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 96346 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 96349 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 96352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 96355 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 96358 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 96361 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 96364 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 96367 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 96370 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 96373 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 96376 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 96379 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 96382 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 96385 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 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*);
    void exposeEvent( ::QExposeEvent*);
     ::QObject* focusObject() const;
     ::QSurfaceFormat format() const;
     ::QSurface::SurfaceType surfaceType() const;
     ::QSize size() const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQWindow::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QWindow);

    return  ::QWindow::metaObject();
}

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::tabletEvent( ::QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
         ::QWindow::tabletEvent(a0);
        return;
    }

    extern void sipVH_QtGui_51(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTabletEvent*);

    sipVH_QtGui_51(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::touchEvent( ::QTouchEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_touchEvent);

    if (!sipMeth)
    {
         ::QWindow::touchEvent(a0);
        return;
    }

    extern void sipVH_QtGui_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTouchEvent*);

    sipVH_QtGui_50(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::wheelEvent( ::QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
         ::QWindow::wheelEvent(a0);
        return;
    }

    extern void sipVH_QtGui_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWheelEvent*);

    sipVH_QtGui_49(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::mouseMoveEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
         ::QWindow::mouseMoveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::mouseDoubleClickEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
         ::QWindow::mouseDoubleClickEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::mouseReleaseEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
         ::QWindow::mouseReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::mousePressEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
         ::QWindow::mousePressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::keyReleaseEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
         ::QWindow::keyReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_QtGui_47(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::keyPressEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
         ::QWindow::keyPressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_QtGui_47(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::hideEvent( ::QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
         ::QWindow::hideEvent(a0);
        return;
    }

    extern void sipVH_QtGui_46(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QHideEvent*);

    sipVH_QtGui_46(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::showEvent( ::QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
         ::QWindow::showEvent(a0);
        return;
    }

    extern void sipVH_QtGui_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QShowEvent*);

    sipVH_QtGui_45(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::focusOutEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
         ::QWindow::focusOutEvent(a0);
        return;
    }

    extern void sipVH_QtGui_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_QtGui_44(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::focusInEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
         ::QWindow::focusInEvent(a0);
        return;
    }

    extern void sipVH_QtGui_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_QtGui_44(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::moveEvent( ::QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
         ::QWindow::moveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMoveEvent*);

    sipVH_QtGui_43(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::resizeEvent( ::QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
         ::QWindow::resizeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QResizeEvent*);

    sipVH_QtGui_42(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::exposeEvent( ::QExposeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_exposeEvent);

    if (!sipMeth)
    {
         ::QWindow::exposeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QExposeEvent*);

    sipVH_QtGui_41(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QObject* sipQWindow::focusObject() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_focusObject);

    if (!sipMeth)
        return  ::QWindow::focusObject();

    extern  ::QObject* sipVH_QtGui_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_40(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSurfaceFormat sipQWindow::format() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_format);

    if (!sipMeth)
        return  ::QWindow::format();

    extern  ::QSurfaceFormat sipVH_QtGui_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_36(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSurface::SurfaceType sipQWindow::surfaceType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,NULL,sipName_surfaceType);

    if (!sipMeth)
        return  ::QWindow::surfaceType();

    extern  ::QSurface::SurfaceType sipVH_QtGui_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_37(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSize sipQWindow::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return  ::QWindow::size();

    extern  ::QSize sipVH_QtGui_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_38(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQWindow::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QWindow::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQWindow::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QWindow::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQWindow::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QWindow::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QWindow::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QWindow::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QWindow::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQWindow::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QWindow::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 97155 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 97215 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "setSurfaceType(self, 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, "surfaceType(self) -> 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 || sipIsDerivedClass((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, "isVisible(self) -> 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, "create(self)");

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, "winId(self) -> 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, "parent(self) -> QWindow\n"
    "parent(self, QWindow.AncestorMode) -> 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);
        }
    }

    {
         ::QWindow::AncestorMode a0;
        const  ::QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWindow, &sipCpp, sipType_QWindow_AncestorMode, &a0))
        {
             ::QWindow*sipRes;

            sipRes = sipCpp->parent(a0);

            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, "setParent(self, 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, "isTopLevel(self) -> 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, "isModal(self) -> 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, "modality(self) -> 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, "setModality(self, 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, "setFormat(self, 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, "format(self) -> 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 || sipIsDerivedClass((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, "requestedFormat(self) -> 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, "setFlags(self, Union[Qt.WindowFlags, Qt.WindowType])");

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, "flags(self) -> 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, "type(self) -> 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, "title(self) -> 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, "setOpacity(self, 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, "requestActivate(self)");

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, "isActive(self) -> 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, "reportContentOrientationChange(self, 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, "contentOrientation(self) -> 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, "devicePixelRatio(self) -> 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, "windowState(self) -> 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, "setWindowState(self, 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, "setTransientParent(self, 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, "transientParent(self) -> 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, "isAncestorOf(self, QWindow, mode: QWindow.AncestorMode = 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, "isExposed(self) -> 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, "minimumWidth(self) -> 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, "minimumHeight(self) -> 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, "maximumWidth(self) -> 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, "maximumHeight(self) -> 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, "minimumSize(self) -> 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, "maximumSize(self) -> 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, "baseSize(self) -> 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, "sizeIncrement(self) -> 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, "setMinimumSize(self, 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, "setMaximumSize(self, 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, "setBaseSize(self, 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, "setSizeIncrement(self, 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, "setGeometry(self, int, int, int, int)\n"
    "setGeometry(self, 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, "geometry(self) -> 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, "frameMargins(self) -> 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, "frameGeometry(self) -> 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, "framePosition(self) -> 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, "setFramePosition(self, 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, "width(self) -> 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, "height(self) -> 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, "x(self) -> 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, "y(self) -> 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, "size(self) -> 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 || sipIsDerivedClass((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, "position(self) -> 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, "setPosition(self, QPoint)\n"
    "setPosition(self, 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, "resize(self, QSize)\n"
    "resize(self, 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, "setFilePath(self, 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, "filePath(self) -> 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, "setIcon(self, 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, "icon(self) -> 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, "destroy(self)");

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, "setKeyboardGrabEnabled(self, 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, "setMouseGrabEnabled(self, 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, "screen(self) -> 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, "setScreen(self, 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, "focusObject(self) -> 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 || sipIsDerivedClass((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, "mapToGlobal(self, 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, "mapFromGlobal(self, 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, "cursor(self) -> 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, "setCursor(self, Union[QCursor, Qt.CursorShape])");

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, "unsetCursor(self)");

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, "setVisible(self, 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, "show(self)");

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, "hide(self)");

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, "showMinimized(self)");

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, "showMaximized(self)");

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, "showFullScreen(self)");

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, "showNormal(self)");

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, "close(self) -> 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_, "raise_(self)");

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, "lower(self)");

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, "setTitle(self, 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, "setX(self, 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, "setY(self, 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, "setWidth(self, 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, "setHeight(self, 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, "setMinimumWidth(self, 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, "setMinimumHeight(self, 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, "setMaximumWidth(self, 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, "setMaximumHeight(self, 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_alert, "alert(self, 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;
}


PyDoc_STRVAR(doc_QWindow_requestUpdate, "requestUpdate(self)");

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

    {
         ::QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            sipCpp->requestUpdate();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_requestUpdate, doc_QWindow_requestUpdate);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_exposeEvent, "exposeEvent(self, 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 || sipIsDerivedClass((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, "resizeEvent(self, 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 || sipIsDerivedClass((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, "moveEvent(self, 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 || sipIsDerivedClass((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, "focusInEvent(self, 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 || sipIsDerivedClass((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, "focusOutEvent(self, 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 || sipIsDerivedClass((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, "showEvent(self, 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 || sipIsDerivedClass((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, "hideEvent(self, 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 || sipIsDerivedClass((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, "event(self, 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 || sipIsDerivedClass((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, "keyPressEvent(self, 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 || sipIsDerivedClass((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, "keyReleaseEvent(self, 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 || sipIsDerivedClass((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, "mousePressEvent(self, 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 || sipIsDerivedClass((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, "mouseReleaseEvent(self, 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 || sipIsDerivedClass((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, "mouseDoubleClickEvent(self, 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 || sipIsDerivedClass((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, "mouseMoveEvent(self, 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 || sipIsDerivedClass((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, "wheelEvent(self, 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 || sipIsDerivedClass((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, "touchEvent(self, 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 || sipIsDerivedClass((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, "tabletEvent(self, 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 || sipIsDerivedClass((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, "visibility(self) -> 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, "setVisibility(self, 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, "opacity(self) -> 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, "setMask(self, 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, "mask(self) -> 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, "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_setFlag, "setFlag(self, Qt.WindowType, on: bool = True)");

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

    {
         ::Qt::WindowType a0;
        bool a1 = 1;
         ::QWindow *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|b", &sipSelf, sipType_QWindow, &sipCpp, sipType_Qt_WindowType, &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_QWindow, sipName_setFlag, doc_QWindow_setFlag);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QWindow(void *, const sipTypeDef *);}
static void *cast_QWindow(void *sipCppV, const sipTypeDef *targetType)
{
     ::QWindow *sipCpp = reinterpret_cast< ::QWindow *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_QSurface)
        return static_cast< ::QSurface *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQWindow *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QWindow(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 0, 0}, {268, 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_requestUpdate), meth_QWindow_requestUpdate, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_requestUpdate)},
    {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_setFlag), (PyCFunction)meth_QWindow_setFlag, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_setFlag)},
    {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), 377},
    {sipName_ExcludeTransients, static_cast<int>( ::QWindow::ExcludeTransients), 376},
    {sipName_FullScreen, static_cast<int>( ::QWindow::FullScreen), 377},
    {sipName_Hidden, static_cast<int>( ::QWindow::Hidden), 377},
    {sipName_IncludeTransients, static_cast<int>( ::QWindow::IncludeTransients), 376},
    {sipName_Maximized, static_cast<int>( ::QWindow::Maximized), 377},
    {sipName_Minimized, static_cast<int>( ::QWindow::Minimized), 377},
    {sipName_Windowed, static_cast<int>( ::QWindow::Windowed), 377},
};

PyDoc_STRVAR(doc_QWindow, "\1QWindow(screen: QScreen = None)\n"
    "QWindow(QWindow)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QWindow[] = {
    {"opacityChanged(qreal)", "\1opacityChanged(self, float)", 0, 0},
    {"activeChanged()", "\1activeChanged(self)", 0, 0},
    {"visibilityChanged(QWindow::Visibility)", "\1visibilityChanged(self, QWindow.Visibility)", 0, 0},
    {"windowTitleChanged(QString)", "\1windowTitleChanged(self, str)", 0, 0},
    {"focusObjectChanged(QObject*)", "\1focusObjectChanged(self, QObject)", 0, 0},
    {"contentOrientationChanged(Qt::ScreenOrientation)", "\1contentOrientationChanged(self, Qt.ScreenOrientation)", 0, 0},
    {"visibleChanged(bool)", "\1visibleChanged(self, bool)", 0, 0},
    {"maximumHeightChanged(int)", "\1maximumHeightChanged(self, int)", 0, 0},
    {"maximumWidthChanged(int)", "\1maximumWidthChanged(self, int)", 0, 0},
    {"minimumHeightChanged(int)", "\1minimumHeightChanged(self, int)", 0, 0},
    {"minimumWidthChanged(int)", "\1minimumWidthChanged(self, int)", 0, 0},
    {"heightChanged(int)", "\1heightChanged(self, int)", 0, 0},
    {"widthChanged(int)", "\1widthChanged(self, int)", 0, 0},
    {"yChanged(int)", "\1yChanged(self, int)", 0, 0},
    {"xChanged(int)", "\1xChanged(self, int)", 0, 0},
    {"windowStateChanged(Qt::WindowState)", "\1windowStateChanged(self, Qt.WindowState)", 0, 0},
    {"modalityChanged(Qt::WindowModality)", "\1modalityChanged(self, Qt.WindowModality)", 0, 0},
    {"screenChanged(QScreen*)", "\1screenChanged(self, QScreen)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QWindow = {
    & ::QWindow::staticMetaObject,
    0,
    signals_QWindow,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QWindow = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWindow,
        {0},
        &plugin_QWindow
    },
    {
        sipNameNr_QWindow,
        {0, 0, 1},
        125, 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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 101110 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 101114 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QPainter_PixmapFragmentHints___hash__(PyObject *);}
static long slot_QPainter_PixmapFragmentHints___hash__(PyObject *sipSelf)
{
     ::QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast< ::QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QPainter::PixmapFragmentHints::Int();
#line 101132 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::PixmapFragmentHints::Int() != 0);
#line 101157 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::PixmapFragmentHints::Int() != a0->operator QPainter::PixmapFragmentHints::Int());
#line 101187 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::PixmapFragmentHints::Int() == a0->operator QPainter::PixmapFragmentHints::Int());
#line 101223 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QPainter::PixmapFragmentHints(*sipCpp ^ a0);
#line 101262 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QPainter_PixmapFragmentHints___xor__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QPainter::PixmapFragmentHints(*sipCpp | a0);
#line 101334 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QPainter_PixmapFragmentHints___or__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QPainter::PixmapFragmentHints();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QPainter::PixmapFragmentHints(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 101602 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPainter_PixmapFragmentHints[] = {
    {(void *)slot_QPainter_PixmapFragmentHints___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___xor__, xor_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___ior__, ior_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___or__, or_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___iand__, iand_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___and__, and_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___invert__, invert_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QPainter_PixmapFragmentHints, "\1QPainter.PixmapFragmentHints()\n"
    "QPainter.PixmapFragmentHints(Union[QPainter.PixmapFragmentHints, QPainter.PixmapFragmentHint])\n"
    "QPainter.PixmapFragmentHints(QPainter.PixmapFragmentHints)");


static pyqt5ClassPluginDef plugin_QPainter_PixmapFragmentHints = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPainter_PixmapFragmentHints = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPainter__PixmapFragmentHints,
        {0},
        &plugin_QPainter_PixmapFragmentHints
    },
    {
        sipNameNr_PixmapFragmentHints,
        {203, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainter_PixmapFragmentHints,
    -1,
    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,
    0,
    convertTo_QPainter_PixmapFragmentHints,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 101690 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 101694 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 101697 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainter_PixmapFragment_create, "create(Union[QPointF, QPoint], QRectF, scaleX: float = 1, scaleY: float = 1, rotation: float = 0, opacity: float = 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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QPainter_PixmapFragment = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPainter_PixmapFragment = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPainter__PixmapFragment,
        {0},
        &plugin_QPainter_PixmapFragment
    },
    {
        sipNameNr_PixmapFragment,
        {203, 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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 102183 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 102187 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QPainter_RenderHints___hash__(PyObject *);}
static long slot_QPainter_RenderHints___hash__(PyObject *sipSelf)
{
     ::QPainter::RenderHints *sipCpp = reinterpret_cast< ::QPainter::RenderHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_RenderHints));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QPainter::RenderHints::Int();
#line 102205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::RenderHints::Int() != 0);
#line 102230 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::RenderHints::Int() != a0->operator QPainter::RenderHints::Int());
#line 102260 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::RenderHints::Int() == a0->operator QPainter::RenderHints::Int());
#line 102296 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QPainter::RenderHints(*sipCpp ^ a0);
#line 102335 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QPainter_RenderHints___xor__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QPainter::RenderHints(*sipCpp | a0);
#line 102407 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QPainter_RenderHints___or__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QPainter::RenderHints();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QPainter::RenderHints(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 102675 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPainter_RenderHints[] = {
    {(void *)slot_QPainter_RenderHints___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QPainter_RenderHints___xor__, xor_slot},
    {(void *)slot_QPainter_RenderHints___ior__, ior_slot},
    {(void *)slot_QPainter_RenderHints___or__, or_slot},
    {(void *)slot_QPainter_RenderHints___iand__, iand_slot},
    {(void *)slot_QPainter_RenderHints___and__, and_slot},
    {(void *)slot_QPainter_RenderHints___invert__, invert_slot},
    {(void *)slot_QPainter_RenderHints___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QPainter_RenderHints, "\1QPainter.RenderHints()\n"
    "QPainter.RenderHints(Union[QPainter.RenderHints, QPainter.RenderHint])\n"
    "QPainter.RenderHints(QPainter.RenderHints)");


static pyqt5ClassPluginDef plugin_QPainter_RenderHints = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPainter_RenderHints = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPainter__RenderHints,
        {0},
        &plugin_QPainter_RenderHints
    },
    {
        sipNameNr_RenderHints,
        {203, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainter_RenderHints,
    -1,
    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,
    0,
    convertTo_QPainter_RenderHints,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 102761 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 102765 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 102768 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 102771 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 102774 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qstatictext.sip"
#include <qstatictext.h>
#line 102777 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 102780 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 102783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 102786 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 102789 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 102792 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 102795 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 102798 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 102801 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qline.sip"
#include <qline.h>
#line 102804 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qline.sip"
#include <qline.h>
#line 102807 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 102810 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 102813 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 102816 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 102819 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 102822 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 102825 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 102828 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 326 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 102831 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 102834 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 102837 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 102840 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 102843 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 102846 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 102849 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 102852 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 102855 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 102858 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 102861 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 102864 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 102867 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 102870 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_Size(t)];

    arr[0] = *first;

    for (Py_ssize_t i = 0; i < PyTuple_Size(t); ++i)
    {
        int iserr = 0, state;
        TYPE *itm;

        itm  = reinterpret_cast<TYPE *>(sipForceConvertToType(PyTuple_GetItem(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", sipPyTypeName(sipTypeAsPyTypeObject(td)));

            delete[] arr;
            return 0;
        }

        arr[1 + i] = *itm;

        sipReleaseType(itm, td, state);
    }

    return arr;
}
#line 102905 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainter___enter__, "__enter__(self) -> 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 82 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 102936 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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__, "__exit__(self, 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 98 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        sipCpp->end();
#line 102967 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "device(self) -> 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, "begin(self, 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, "end(self) -> 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, "isActive(self) -> 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, "setCompositionMode(self, 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, "compositionMode(self) -> 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, "font(self) -> 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, "setFont(self, 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, "fontMetrics(self) -> 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, "fontInfo(self) -> 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, "setPen(self, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "setPen(self, Union[QPen, QColor, Qt.GlobalColor, QGradient])\n"
    "setPen(self, 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, "pen(self) -> 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, "setBrush(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])\n"
    "setBrush(self, 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, "brush(self) -> 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, "setBackgroundMode(self, 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, "backgroundMode(self) -> 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, "brushOrigin(self) -> 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, "setBrushOrigin(self, Union[QPointF, QPoint])\n"
    "setBrushOrigin(self, int, int)\n"
    "setBrushOrigin(self, 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, "setBackground(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "background(self) -> 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, "clipRegion(self) -> 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, "clipPath(self) -> 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, "setClipRect(self, QRectF, operation: Qt.ClipOperation = Qt.ReplaceClip)\n"
    "setClipRect(self, int, int, int, int, operation: Qt.ClipOperation = Qt.ReplaceClip)\n"
    "setClipRect(self, QRect, operation: Qt.ClipOperation = 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, "setClipRegion(self, QRegion, operation: Qt.ClipOperation = 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, "setClipPath(self, QPainterPath, operation: Qt.ClipOperation = 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, "setClipping(self, 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, "hasClipping(self) -> 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, "save(self)");

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, "restore(self)");

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, "scale(self, 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, "shear(self, 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, "rotate(self, 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, "translate(self, Union[QPointF, QPoint])\n"
    "translate(self, float, float)\n"
    "translate(self, 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, "window(self) -> 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, "setWindow(self, QRect)\n"
    "setWindow(self, 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, "viewport(self) -> 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, "setViewport(self, QRect)\n"
    "setViewport(self, 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, "setViewTransformEnabled(self, 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, "viewTransformEnabled(self) -> 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, "strokePath(self, QPainterPath, Union[QPen, QColor, Qt.GlobalColor, QGradient])");

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, "fillPath(self, QPainterPath, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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, "drawPath(self, 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, "drawPoints(self, Union[QPointF, QPoint], *)\n"
    "drawPoints(self, QPolygonF)\n"
    "drawPoints(self, QPoint, *)\n"
    "drawPoints(self, 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 191 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (points)
        {
            sipCpp->drawPoints(points, 1 + PyTuple_Size(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 104419 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (points)
        {
            sipCpp->drawPoints(points, 1 + PyTuple_Size(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 104464 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "drawLines(self, QLineF, *)\n"
    "drawLines(self, object)\n"
    "drawLines(self, Union[QPointF, QPoint], *)\n"
    "drawLines(self, Iterable[Union[QPointF, QPoint]])\n"
    "drawLines(self, QLine, *)\n"
    "drawLines(self, object)\n"
    "drawLines(self, QPoint, *)\n"
    "drawLines(self, object)");

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 219 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QLineF *lines = qtgui_inst_array<QLineF>(a0, a1, sipType_QLineF);
        
        if (lines)
        {
            sipCpp->drawLines(lines, 1 + PyTuple_Size(a1));
            delete[] lines;
        }
        else
            sipIsErr = 1;
#line 104537 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 233 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPointF *pairs = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (pairs)
        {
            sipCpp->drawLines(pairs, (1 + PyTuple_Size(a1)) / 2);
            delete[] pairs;
        }
        else
            sipIsErr = 1;
#line 104584 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 247 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QLine *lines = qtgui_inst_array<QLine>(a0, a1, sipType_QLine);
        
        if (lines)
        {
            sipCpp->drawLines(lines, 1 + PyTuple_Size(a1));
            delete[] lines;
        }
        else
            sipIsErr = 1;
#line 104631 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 261 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPoint *pairs = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (pairs)
        {
            sipCpp->drawLines(pairs, (1 + PyTuple_Size(a1)) / 2);
            delete[] pairs;
        }
        else
            sipIsErr = 1;
#line 104677 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "drawRects(self, QRectF, *)\n"
    "drawRects(self, object)\n"
    "drawRects(self, QRect, *)\n"
    "drawRects(self, object)");

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 275 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QRectF *rects = qtgui_inst_array<QRectF>(a0, a1, sipType_QRectF);
        
        if (rects)
        {
            sipCpp->drawRects(rects, 1 + PyTuple_Size(a1));
            delete[] rects;
        }
        else
            sipIsErr = 1;
#line 104744 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 289 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QRect *rects = qtgui_inst_array<QRect>(a0, a1, sipType_QRect);
        
        if (rects)
        {
            sipCpp->drawRects(rects, 1 + PyTuple_Size(a1));
            delete[] rects;
        }
        else
            sipIsErr = 1;
#line 104790 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "drawEllipse(self, QRectF)\n"
    "drawEllipse(self, QRect)\n"
    "drawEllipse(self, int, int, int, int)\n"
    "drawEllipse(self, Union[QPointF, QPoint], float, float)\n"
    "drawEllipse(self, 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, "drawPolyline(self, Union[QPointF, QPoint], *)\n"
    "drawPolyline(self, QPolygonF)\n"
    "drawPolyline(self, QPoint, *)\n"
    "drawPolyline(self, 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 305 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (points)
        {
            sipCpp->drawPolyline(points, 1 + PyTuple_Size(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 104955 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 319 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (points)
        {
            sipCpp->drawPolyline(points, 1 + PyTuple_Size(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 105000 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "drawPolygon(self, Union[QPointF, QPoint], *)\n"
    "drawPolygon(self, QPolygonF, fillRule: Qt.FillRule = Qt.OddEvenFill)\n"
    "drawPolygon(self, QPoint, *)\n"
    "drawPolygon(self, QPolygon, fillRule: Qt.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 333 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (points)
        {
            sipCpp->drawPolygon(points, 1 + PyTuple_Size(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 105066 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 347 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (points)
        {
            sipCpp->drawPolygon(points, 1 + PyTuple_Size(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 105117 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "drawConvexPolygon(self, Union[QPointF, QPoint], *)\n"
    "drawConvexPolygon(self, QPolygonF)\n"
    "drawConvexPolygon(self, QPoint, *)\n"
    "drawConvexPolygon(self, 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 361 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (points)
        {
            sipCpp->drawConvexPolygon(points, 1 + PyTuple_Size(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 105189 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 375 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (points)
        {
            sipCpp->drawConvexPolygon(points, 1 + PyTuple_Size(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 105234 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "drawArc(self, QRectF, int, int)\n"
    "drawArc(self, QRect, int, int)\n"
    "drawArc(self, 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, "drawPie(self, QRectF, int, int)\n"
    "drawPie(self, QRect, int, int)\n"
    "drawPie(self, 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, "drawChord(self, QRectF, int, int)\n"
    "drawChord(self, QRect, int, int)\n"
    "drawChord(self, 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, "drawTiledPixmap(self, QRectF, QPixmap, pos: Union[QPointF, QPoint] = QPointF())\n"
    "drawTiledPixmap(self, QRect, QPixmap, pos: QPoint = QPoint())\n"
    "drawTiledPixmap(self, int, int, int, int, QPixmap, sx: int = 0, sy: int = 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, "drawPicture(self, Union[QPointF, QPoint], QPicture)\n"
    "drawPicture(self, int, int, QPicture)\n"
    "drawPicture(self, 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, "drawPixmap(self, QRectF, QPixmap, QRectF)\n"
    "drawPixmap(self, QRect, QPixmap, QRect)\n"
    "drawPixmap(self, Union[QPointF, QPoint], QPixmap)\n"
    "drawPixmap(self, QPoint, QPixmap)\n"
    "drawPixmap(self, QRect, QPixmap)\n"
    "drawPixmap(self, int, int, QPixmap)\n"
    "drawPixmap(self, int, int, int, int, QPixmap)\n"
    "drawPixmap(self, int, int, int, int, QPixmap, int, int, int, int)\n"
    "drawPixmap(self, int, int, QPixmap, int, int, int, int)\n"
    "drawPixmap(self, Union[QPointF, QPoint], QPixmap, QRectF)\n"
    "drawPixmap(self, 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, "setLayoutDirection(self, 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, "layoutDirection(self) -> 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, "drawText(self, Union[QPointF, QPoint], str)\n"
    "drawText(self, QRectF, int, str) -> QRectF\n"
    "drawText(self, QRect, int, str) -> QRect\n"
    "drawText(self, QRectF, str, option: QTextOption = QTextOption())\n"
    "drawText(self, QPoint, str)\n"
    "drawText(self, int, int, int, int, int, str) -> QRect\n"
    "drawText(self, 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, "boundingRect(self, QRectF, int, str) -> QRectF\n"
    "boundingRect(self, QRect, int, str) -> QRect\n"
    "boundingRect(self, QRectF, str, option: QTextOption = QTextOption()) -> QRectF\n"
    "boundingRect(self, 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, "fillRect(self, QRectF, Union[QBrush, QColor, Qt.GlobalColor, QGradient])\n"
    "fillRect(self, QRect, Union[QBrush, QColor, Qt.GlobalColor, QGradient])\n"
    "fillRect(self, int, int, int, int, Union[QBrush, QColor, Qt.GlobalColor, QGradient])\n"
    "fillRect(self, QRectF, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "fillRect(self, QRect, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "fillRect(self, int, int, int, int, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "fillRect(self, int, int, int, int, Qt.GlobalColor)\n"
    "fillRect(self, QRect, Qt.GlobalColor)\n"
    "fillRect(self, QRectF, Qt.GlobalColor)\n"
    "fillRect(self, int, int, int, int, Qt.BrushStyle)\n"
    "fillRect(self, QRect, Qt.BrushStyle)\n"
    "fillRect(self, 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, "eraseRect(self, QRectF)\n"
    "eraseRect(self, QRect)\n"
    "eraseRect(self, 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, "setRenderHint(self, QPainter.RenderHint, on: bool = 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, "renderHints(self) -> 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, "setRenderHints(self, Union[QPainter.RenderHints, QPainter.RenderHint], on: bool = 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, "paintEngine(self) -> 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, "drawLine(self, QLineF)\n"
    "drawLine(self, QLine)\n"
    "drawLine(self, int, int, int, int)\n"
    "drawLine(self, QPoint, QPoint)\n"
    "drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint])");

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, "drawRect(self, QRectF)\n"
    "drawRect(self, int, int, int, int)\n"
    "drawRect(self, 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, "drawPoint(self, Union[QPointF, QPoint])\n"
    "drawPoint(self, int, int)\n"
    "drawPoint(self, 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, "drawImage(self, QRectF, QImage, QRectF, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.AutoColor)\n"
    "drawImage(self, QRect, QImage, QRect, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.AutoColor)\n"
    "drawImage(self, Union[QPointF, QPoint], QImage, QRectF, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.AutoColor)\n"
    "drawImage(self, QPoint, QImage, QRect, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.AutoColor)\n"
    "drawImage(self, QRectF, QImage)\n"
    "drawImage(self, QRect, QImage)\n"
    "drawImage(self, Union[QPointF, QPoint], QImage)\n"
    "drawImage(self, QPoint, QImage)\n"
    "drawImage(self, int, int, QImage, sx: int = 0, sy: int = 0, sw: int = -1, sh: int = -1, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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, "opacity(self) -> 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, "setOpacity(self, 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, "worldMatrixEnabled(self) -> 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, "setWorldMatrixEnabled(self, 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, "setTransform(self, QTransform, combine: bool = 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, "transform(self) -> 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, "deviceTransform(self) -> 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, "resetTransform(self)");

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, "setWorldTransform(self, QTransform, combine: bool = 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, "worldTransform(self) -> 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, "combinedTransform(self) -> 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, "testRenderHint(self, 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, "drawRoundedRect(self, QRectF, float, float, mode: Qt.SizeMode = Qt.AbsoluteSize)\n"
    "drawRoundedRect(self, int, int, int, int, float, float, mode: Qt.SizeMode = Qt.AbsoluteSize)\n"
    "drawRoundedRect(self, QRect, float, float, mode: Qt.SizeMode = 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, "beginNativePainting(self)");

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, "endNativePainting(self)");

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, "drawPixmapFragments(self, List[QPainter.PixmapFragment], QPixmap, hints: QPainter.PixmapFragmentHints = 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 522 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
        // Allocate temporary storage for the C++ conversions.
        Py_ssize_t numFragments = PyList_Size(a0);
        QPainter::PixmapFragment *fragments = new QPainter::PixmapFragment[numFragments];
        
        // Convert the fragments.
        for (Py_ssize_t i = 0; i < numFragments; ++i)
        {
            void *cpp = sipForceConvertToType(PyList_GetItem(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 107587 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "drawStaticText(self, Union[QPointF, QPoint], QStaticText)\n"
    "drawStaticText(self, QPoint, QStaticText)\n"
    "drawStaticText(self, 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, "clipBoundingRect(self) -> 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, "drawGlyphRun(self, Union[QPointF, QPoint], 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;
}


/* 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 (sipIsOwnedByPython(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), 208},
    {sipName_CompositionMode_Clear, static_cast<int>( ::QPainter::CompositionMode_Clear), 204},
    {sipName_CompositionMode_ColorBurn, static_cast<int>( ::QPainter::CompositionMode_ColorBurn), 204},
    {sipName_CompositionMode_ColorDodge, static_cast<int>( ::QPainter::CompositionMode_ColorDodge), 204},
    {sipName_CompositionMode_Darken, static_cast<int>( ::QPainter::CompositionMode_Darken), 204},
    {sipName_CompositionMode_Destination, static_cast<int>( ::QPainter::CompositionMode_Destination), 204},
    {sipName_CompositionMode_DestinationAtop, static_cast<int>( ::QPainter::CompositionMode_DestinationAtop), 204},
    {sipName_CompositionMode_DestinationIn, static_cast<int>( ::QPainter::CompositionMode_DestinationIn), 204},
    {sipName_CompositionMode_DestinationOut, static_cast<int>( ::QPainter::CompositionMode_DestinationOut), 204},
    {sipName_CompositionMode_DestinationOver, static_cast<int>( ::QPainter::CompositionMode_DestinationOver), 204},
    {sipName_CompositionMode_Difference, static_cast<int>( ::QPainter::CompositionMode_Difference), 204},
    {sipName_CompositionMode_Exclusion, static_cast<int>( ::QPainter::CompositionMode_Exclusion), 204},
    {sipName_CompositionMode_HardLight, static_cast<int>( ::QPainter::CompositionMode_HardLight), 204},
    {sipName_CompositionMode_Lighten, static_cast<int>( ::QPainter::CompositionMode_Lighten), 204},
    {sipName_CompositionMode_Multiply, static_cast<int>( ::QPainter::CompositionMode_Multiply), 204},
    {sipName_CompositionMode_Overlay, static_cast<int>( ::QPainter::CompositionMode_Overlay), 204},
    {sipName_CompositionMode_Plus, static_cast<int>( ::QPainter::CompositionMode_Plus), 204},
    {sipName_CompositionMode_Screen, static_cast<int>( ::QPainter::CompositionMode_Screen), 204},
    {sipName_CompositionMode_SoftLight, static_cast<int>( ::QPainter::CompositionMode_SoftLight), 204},
    {sipName_CompositionMode_Source, static_cast<int>( ::QPainter::CompositionMode_Source), 204},
    {sipName_CompositionMode_SourceAtop, static_cast<int>( ::QPainter::CompositionMode_SourceAtop), 204},
    {sipName_CompositionMode_SourceIn, static_cast<int>( ::QPainter::CompositionMode_SourceIn), 204},
    {sipName_CompositionMode_SourceOut, static_cast<int>( ::QPainter::CompositionMode_SourceOut), 204},
    {sipName_CompositionMode_SourceOver, static_cast<int>( ::QPainter::CompositionMode_SourceOver), 204},
    {sipName_CompositionMode_Xor, static_cast<int>( ::QPainter::CompositionMode_Xor), 204},
    {sipName_HighQualityAntialiasing, static_cast<int>( ::QPainter::HighQualityAntialiasing), 208},
    {sipName_NonCosmeticDefaultPen, static_cast<int>( ::QPainter::NonCosmeticDefaultPen), 208},
    {sipName_OpaqueHint, static_cast<int>( ::QPainter::OpaqueHint), 206},
    {sipName_Qt4CompatiblePainting, static_cast<int>( ::QPainter::Qt4CompatiblePainting), 208},
    {sipName_RasterOp_ClearDestination, static_cast<int>( ::QPainter::RasterOp_ClearDestination), 204},
    {sipName_RasterOp_NotDestination, static_cast<int>( ::QPainter::RasterOp_NotDestination), 204},
    {sipName_RasterOp_NotSource, static_cast<int>( ::QPainter::RasterOp_NotSource), 204},
    {sipName_RasterOp_NotSourceAndDestination, static_cast<int>( ::QPainter::RasterOp_NotSourceAndDestination), 204},
    {sipName_RasterOp_NotSourceAndNotDestination, static_cast<int>( ::QPainter::RasterOp_NotSourceAndNotDestination), 204},
    {sipName_RasterOp_NotSourceOrDestination, static_cast<int>( ::QPainter::RasterOp_NotSourceOrDestination), 204},
    {sipName_RasterOp_NotSourceOrNotDestination, static_cast<int>( ::QPainter::RasterOp_NotSourceOrNotDestination), 204},
    {sipName_RasterOp_NotSourceXorDestination, static_cast<int>( ::QPainter::RasterOp_NotSourceXorDestination), 204},
    {sipName_RasterOp_SetDestination, static_cast<int>( ::QPainter::RasterOp_SetDestination), 204},
    {sipName_RasterOp_SourceAndDestination, static_cast<int>( ::QPainter::RasterOp_SourceAndDestination), 204},
    {sipName_RasterOp_SourceAndNotDestination, static_cast<int>( ::QPainter::RasterOp_SourceAndNotDestination), 204},
    {sipName_RasterOp_SourceOrDestination, static_cast<int>( ::QPainter::RasterOp_SourceOrDestination), 204},
    {sipName_RasterOp_SourceOrNotDestination, static_cast<int>( ::QPainter::RasterOp_SourceOrNotDestination), 204},
    {sipName_RasterOp_SourceXorDestination, static_cast<int>( ::QPainter::RasterOp_SourceXorDestination), 204},
    {sipName_SmoothPixmapTransform, static_cast<int>( ::QPainter::SmoothPixmapTransform), 208},
    {sipName_TextAntialiasing, static_cast<int>( ::QPainter::TextAntialiasing), 208},
};

PyDoc_STRVAR(doc_QPainter, "\1QPainter()\n"
    "QPainter(QPaintDevice)");


static pyqt5ClassPluginDef plugin_QPainter = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPainter = {
    {
        -1,
        0,
        0,
        SIP_TYPE_NONLAZY|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPainter,
        {0},
        &plugin_QPainter
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 107980 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 107984 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 107987 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 107990 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 107993 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 107996 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPageSize_swap, "swap(self, 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, "isEquivalentTo(self, 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, "isValid(self) -> 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, "key(self) -> str\n"
    "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, "name(self) -> str\n"
    "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, "id(self) -> QPageSize.PageSizeId\n"
    "id(QSize, matchPolicy: QPageSize.SizeMatchPolicy = QPageSize.FuzzyMatch) -> QPageSize.PageSizeId\n"
    "id(QSizeF, QPageSize.Unit, matchPolicy: QPageSize.SizeMatchPolicy = QPageSize.FuzzyMatch) -> QPageSize.PageSizeId\n"
    "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, "windowsId(self) -> int\n"
    "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, "definitionSize(self) -> QSizeF\n"
    "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, "definitionUnits(self) -> QPageSize.Unit\n"
    "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, "size(self, QPageSize.Unit) -> QSizeF\n"
    "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, "sizePoints(self) -> QSize\n"
    "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, "sizePixels(self, int) -> QSize\n"
    "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, "rect(self, 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, "rectPoints(self) -> 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, "rectPixels(self, 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);
}


/* 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 (sipIsOwnedByPython(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), 185},
    {sipName_A1, static_cast<int>( ::QPageSize::A1), 185},
    {sipName_A10, static_cast<int>( ::QPageSize::A10), 185},
    {sipName_A2, static_cast<int>( ::QPageSize::A2), 185},
    {sipName_A3, static_cast<int>( ::QPageSize::A3), 185},
    {sipName_A3Extra, static_cast<int>( ::QPageSize::A3Extra), 185},
    {sipName_A4, static_cast<int>( ::QPageSize::A4), 185},
    {sipName_A4Extra, static_cast<int>( ::QPageSize::A4Extra), 185},
    {sipName_A4Plus, static_cast<int>( ::QPageSize::A4Plus), 185},
    {sipName_A4Small, static_cast<int>( ::QPageSize::A4Small), 185},
    {sipName_A5, static_cast<int>( ::QPageSize::A5), 185},
    {sipName_A5Extra, static_cast<int>( ::QPageSize::A5Extra), 185},
    {sipName_A6, static_cast<int>( ::QPageSize::A6), 185},
    {sipName_A7, static_cast<int>( ::QPageSize::A7), 185},
    {sipName_A8, static_cast<int>( ::QPageSize::A8), 185},
    {sipName_A9, static_cast<int>( ::QPageSize::A9), 185},
    {sipName_AnsiA, static_cast<int>( ::QPageSize::AnsiA), 185},
    {sipName_AnsiB, static_cast<int>( ::QPageSize::AnsiB), 185},
    {sipName_AnsiC, static_cast<int>( ::QPageSize::AnsiC), 185},
    {sipName_AnsiD, static_cast<int>( ::QPageSize::AnsiD), 185},
    {sipName_AnsiE, static_cast<int>( ::QPageSize::AnsiE), 185},
    {sipName_ArchA, static_cast<int>( ::QPageSize::ArchA), 185},
    {sipName_ArchB, static_cast<int>( ::QPageSize::ArchB), 185},
    {sipName_ArchC, static_cast<int>( ::QPageSize::ArchC), 185},
    {sipName_ArchD, static_cast<int>( ::QPageSize::ArchD), 185},
    {sipName_ArchE, static_cast<int>( ::QPageSize::ArchE), 185},
    {sipName_B0, static_cast<int>( ::QPageSize::B0), 185},
    {sipName_B1, static_cast<int>( ::QPageSize::B1), 185},
    {sipName_B10, static_cast<int>( ::QPageSize::B10), 185},
    {sipName_B2, static_cast<int>( ::QPageSize::B2), 185},
    {sipName_B3, static_cast<int>( ::QPageSize::B3), 185},
    {sipName_B4, static_cast<int>( ::QPageSize::B4), 185},
    {sipName_B5, static_cast<int>( ::QPageSize::B5), 185},
    {sipName_B5Extra, static_cast<int>( ::QPageSize::B5Extra), 185},
    {sipName_B6, static_cast<int>( ::QPageSize::B6), 185},
    {sipName_B7, static_cast<int>( ::QPageSize::B7), 185},
    {sipName_B8, static_cast<int>( ::QPageSize::B8), 185},
    {sipName_B9, static_cast<int>( ::QPageSize::B9), 185},
    {sipName_C5E, static_cast<int>( ::QPageSize::C5E), 185},
    {sipName_Cicero, static_cast<int>( ::QPageSize::Cicero), 187},
    {sipName_Comm10E, static_cast<int>( ::QPageSize::Comm10E), 185},
    {sipName_Custom, static_cast<int>( ::QPageSize::Custom), 185},
    {sipName_DLE, static_cast<int>( ::QPageSize::DLE), 185},
    {sipName_Didot, static_cast<int>( ::QPageSize::Didot), 187},
    {sipName_DoublePostcard, static_cast<int>( ::QPageSize::DoublePostcard), 185},
    {sipName_Envelope10, static_cast<int>( ::QPageSize::Envelope10), 185},
    {sipName_Envelope11, static_cast<int>( ::QPageSize::Envelope11), 185},
    {sipName_Envelope12, static_cast<int>( ::QPageSize::Envelope12), 185},
    {sipName_Envelope14, static_cast<int>( ::QPageSize::Envelope14), 185},
    {sipName_Envelope9, static_cast<int>( ::QPageSize::Envelope9), 185},
    {sipName_EnvelopeB4, static_cast<int>( ::QPageSize::EnvelopeB4), 185},
    {sipName_EnvelopeB5, static_cast<int>( ::QPageSize::EnvelopeB5), 185},
    {sipName_EnvelopeB6, static_cast<int>( ::QPageSize::EnvelopeB6), 185},
    {sipName_EnvelopeC0, static_cast<int>( ::QPageSize::EnvelopeC0), 185},
    {sipName_EnvelopeC1, static_cast<int>( ::QPageSize::EnvelopeC1), 185},
    {sipName_EnvelopeC2, static_cast<int>( ::QPageSize::EnvelopeC2), 185},
    {sipName_EnvelopeC3, static_cast<int>( ::QPageSize::EnvelopeC3), 185},
    {sipName_EnvelopeC4, static_cast<int>( ::QPageSize::EnvelopeC4), 185},
    {sipName_EnvelopeC5, static_cast<int>( ::QPageSize::EnvelopeC5), 185},
    {sipName_EnvelopeC6, static_cast<int>( ::QPageSize::EnvelopeC6), 185},
    {sipName_EnvelopeC65, static_cast<int>( ::QPageSize::EnvelopeC65), 185},
    {sipName_EnvelopeC7, static_cast<int>( ::QPageSize::EnvelopeC7), 185},
    {sipName_EnvelopeChou3, static_cast<int>( ::QPageSize::EnvelopeChou3), 185},
    {sipName_EnvelopeChou4, static_cast<int>( ::QPageSize::EnvelopeChou4), 185},
    {sipName_EnvelopeDL, static_cast<int>( ::QPageSize::EnvelopeDL), 185},
    {sipName_EnvelopeInvite, static_cast<int>( ::QPageSize::EnvelopeInvite), 185},
    {sipName_EnvelopeItalian, static_cast<int>( ::QPageSize::EnvelopeItalian), 185},
    {sipName_EnvelopeKaku2, static_cast<int>( ::QPageSize::EnvelopeKaku2), 185},
    {sipName_EnvelopeKaku3, static_cast<int>( ::QPageSize::EnvelopeKaku3), 185},
    {sipName_EnvelopeMonarch, static_cast<int>( ::QPageSize::EnvelopeMonarch), 185},
    {sipName_EnvelopePersonal, static_cast<int>( ::QPageSize::EnvelopePersonal), 185},
    {sipName_EnvelopePrc1, static_cast<int>( ::QPageSize::EnvelopePrc1), 185},
    {sipName_EnvelopePrc10, static_cast<int>( ::QPageSize::EnvelopePrc10), 185},
    {sipName_EnvelopePrc2, static_cast<int>( ::QPageSize::EnvelopePrc2), 185},
    {sipName_EnvelopePrc3, static_cast<int>( ::QPageSize::EnvelopePrc3), 185},
    {sipName_EnvelopePrc4, static_cast<int>( ::QPageSize::EnvelopePrc4), 185},
    {sipName_EnvelopePrc5, static_cast<int>( ::QPageSize::EnvelopePrc5), 185},
    {sipName_EnvelopePrc6, static_cast<int>( ::QPageSize::EnvelopePrc6), 185},
    {sipName_EnvelopePrc7, static_cast<int>( ::QPageSize::EnvelopePrc7), 185},
    {sipName_EnvelopePrc8, static_cast<int>( ::QPageSize::EnvelopePrc8), 185},
    {sipName_EnvelopePrc9, static_cast<int>( ::QPageSize::EnvelopePrc9), 185},
    {sipName_EnvelopeYou4, static_cast<int>( ::QPageSize::EnvelopeYou4), 185},
    {sipName_ExactMatch, static_cast<int>( ::QPageSize::ExactMatch), 186},
    {sipName_Executive, static_cast<int>( ::QPageSize::Executive), 185},
    {sipName_ExecutiveStandard, static_cast<int>( ::QPageSize::ExecutiveStandard), 185},
    {sipName_FanFoldGerman, static_cast<int>( ::QPageSize::FanFoldGerman), 185},
    {sipName_FanFoldGermanLegal, static_cast<int>( ::QPageSize::FanFoldGermanLegal), 185},
    {sipName_FanFoldUS, static_cast<int>( ::QPageSize::FanFoldUS), 185},
    {sipName_Folio, static_cast<int>( ::QPageSize::Folio), 185},
    {sipName_FuzzyMatch, static_cast<int>( ::QPageSize::FuzzyMatch), 186},
    {sipName_FuzzyOrientationMatch, static_cast<int>( ::QPageSize::FuzzyOrientationMatch), 186},
    {sipName_Imperial10x11, static_cast<int>( ::QPageSize::Imperial10x11), 185},
    {sipName_Imperial10x13, static_cast<int>( ::QPageSize::Imperial10x13), 185},
    {sipName_Imperial10x14, static_cast<int>( ::QPageSize::Imperial10x14), 185},
    {sipName_Imperial12x11, static_cast<int>( ::QPageSize::Imperial12x11), 185},
    {sipName_Imperial15x11, static_cast<int>( ::QPageSize::Imperial15x11), 185},
    {sipName_Imperial7x9, static_cast<int>( ::QPageSize::Imperial7x9), 185},
    {sipName_Imperial8x10, static_cast<int>( ::QPageSize::Imperial8x10), 185},
    {sipName_Imperial9x11, static_cast<int>( ::QPageSize::Imperial9x11), 185},
    {sipName_Imperial9x12, static_cast<int>( ::QPageSize::Imperial9x12), 185},
    {sipName_Inch, static_cast<int>( ::QPageSize::Inch), 187},
    {sipName_JisB0, static_cast<int>( ::QPageSize::JisB0), 185},
    {sipName_JisB1, static_cast<int>( ::QPageSize::JisB1), 185},
    {sipName_JisB10, static_cast<int>( ::QPageSize::JisB10), 185},
    {sipName_JisB2, static_cast<int>( ::QPageSize::JisB2), 185},
    {sipName_JisB3, static_cast<int>( ::QPageSize::JisB3), 185},
    {sipName_JisB4, static_cast<int>( ::QPageSize::JisB4), 185},
    {sipName_JisB5, static_cast<int>( ::QPageSize::JisB5), 185},
    {sipName_JisB6, static_cast<int>( ::QPageSize::JisB6), 185},
    {sipName_JisB7, static_cast<int>( ::QPageSize::JisB7), 185},
    {sipName_JisB8, static_cast<int>( ::QPageSize::JisB8), 185},
    {sipName_JisB9, static_cast<int>( ::QPageSize::JisB9), 185},
    {sipName_LastPageSize, static_cast<int>( ::QPageSize::LastPageSize), 185},
    {sipName_Ledger, static_cast<int>( ::QPageSize::Ledger), 185},
    {sipName_Legal, static_cast<int>( ::QPageSize::Legal), 185},
    {sipName_LegalExtra, static_cast<int>( ::QPageSize::LegalExtra), 185},
    {sipName_Letter, static_cast<int>( ::QPageSize::Letter), 185},
    {sipName_LetterExtra, static_cast<int>( ::QPageSize::LetterExtra), 185},
    {sipName_LetterPlus, static_cast<int>( ::QPageSize::LetterPlus), 185},
    {sipName_LetterSmall, static_cast<int>( ::QPageSize::LetterSmall), 185},
    {sipName_Millimeter, static_cast<int>( ::QPageSize::Millimeter), 187},
    {sipName_NPageSize, static_cast<int>( ::QPageSize::NPageSize), 185},
    {sipName_NPaperSize, static_cast<int>( ::QPageSize::NPaperSize), 185},
    {sipName_Note, static_cast<int>( ::QPageSize::Note), 185},
    {sipName_Pica, static_cast<int>( ::QPageSize::Pica), 187},
    {sipName_Point, static_cast<int>( ::QPageSize::Point), 187},
    {sipName_Postcard, static_cast<int>( ::QPageSize::Postcard), 185},
    {sipName_Prc16K, static_cast<int>( ::QPageSize::Prc16K), 185},
    {sipName_Prc32K, static_cast<int>( ::QPageSize::Prc32K), 185},
    {sipName_Prc32KBig, static_cast<int>( ::QPageSize::Prc32KBig), 185},
    {sipName_Quarto, static_cast<int>( ::QPageSize::Quarto), 185},
    {sipName_Statement, static_cast<int>( ::QPageSize::Statement), 185},
    {sipName_SuperA, static_cast<int>( ::QPageSize::SuperA), 185},
    {sipName_SuperB, static_cast<int>( ::QPageSize::SuperB), 185},
    {sipName_Tabloid, static_cast<int>( ::QPageSize::Tabloid), 185},
    {sipName_TabloidExtra, static_cast<int>( ::QPageSize::TabloidExtra), 185},
};

PyDoc_STRVAR(doc_QPageSize, "\1QPageSize()\n"
    "QPageSize(QPageSize.PageSizeId)\n"
    "QPageSize(QSize, name: str = '', matchPolicy: QPageSize.SizeMatchPolicy = QPageSize.FuzzyMatch)\n"
    "QPageSize(QSizeF, QPageSize.Unit, name: str = '', matchPolicy: QPageSize.SizeMatchPolicy = QPageSize.FuzzyMatch)\n"
    "QPageSize(QPageSize)");


static pyqt5ClassPluginDef plugin_QPageSize = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPageSize = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPageSize,
        {0},
        &plugin_QPageSize
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 109026 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 109030 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 115 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 109033 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 109036 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 109039 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 109042 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPageLayout_swap, "swap(self, 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, "isEquivalentTo(self, 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, "isValid(self) -> 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, "setMode(self, 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, "mode(self) -> 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, "setPageSize(self, QPageSize, minMargins: QMarginsF = 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, "pageSize(self) -> 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, "setOrientation(self, 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, "orientation(self) -> 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, "setUnits(self, 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, "units(self) -> 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, "setMargins(self, 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, "setLeftMargin(self, 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, "setRightMargin(self, 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, "setTopMargin(self, 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, "setBottomMargin(self, 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, "margins(self) -> QMarginsF\n"
    "margins(self, 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, "marginsPoints(self) -> 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, "marginsPixels(self, 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, "setMinimumMargins(self, 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, "minimumMargins(self) -> 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, "maximumMargins(self) -> 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, "fullRect(self) -> QRectF\n"
    "fullRect(self, 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, "fullRectPoints(self) -> 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, "fullRectPixels(self, 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, "paintRect(self) -> QRectF\n"
    "paintRect(self, 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, "paintRectPoints(self) -> 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, "paintRectPixels(self, 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);
}


/* 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 (sipIsOwnedByPython(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), 183},
    {sipName_Didot, static_cast<int>( ::QPageLayout::Didot), 183},
    {sipName_FullPageMode, static_cast<int>( ::QPageLayout::FullPageMode), 181},
    {sipName_Inch, static_cast<int>( ::QPageLayout::Inch), 183},
    {sipName_Landscape, static_cast<int>( ::QPageLayout::Landscape), 182},
    {sipName_Millimeter, static_cast<int>( ::QPageLayout::Millimeter), 183},
    {sipName_Pica, static_cast<int>( ::QPageLayout::Pica), 183},
    {sipName_Point, static_cast<int>( ::QPageLayout::Point), 183},
    {sipName_Portrait, static_cast<int>( ::QPageLayout::Portrait), 182},
    {sipName_StandardMode, static_cast<int>( ::QPageLayout::StandardMode), 181},
};

PyDoc_STRVAR(doc_QPageLayout, "\1QPageLayout()\n"
    "QPageLayout(QPageSize, QPageLayout.Orientation, QMarginsF, units: QPageLayout.Unit = QPageLayout.Point, minMargins: QMarginsF = QMarginsF(0,0,0,0))\n"
    "QPageLayout(QPageLayout)");


static pyqt5ClassPluginDef plugin_QPageLayout = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPageLayout = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPageLayout,
        {0},
        &plugin_QPageLayout
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 110168 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"



/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QPagedPaintDevice_Margins = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPagedPaintDevice_Margins = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPagedPaintDevice__Margins,
        {0},
        &plugin_QPagedPaintDevice_Margins
    },
    {
        sipNameNr_Margins,
        {188, 255, 0},
        0, 0,
        0, 0,
        4, variables_QPagedPaintDevice_Margins,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPagedPaintDevice_Margins,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 110426 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 110430 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 115 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 110433 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 110438 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 110441 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 110444 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 110447 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 110450 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    void setMargins(const  ::QPagedPaintDevice::Margins&);
    void setPageSizeMM(const  ::QSizeF&);
    void setPageSize( ::QPagedPaintDevice::PageSize);
    bool newPage();
     ::QPaintEngine* paintEngine() const;
    int metric( ::QPaintDevice::PaintDeviceMetric) const;

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()
{
    sipInstanceDestroyed(sipPySelf);
}

void sipQPagedPaintDevice::setMargins(const  ::QPagedPaintDevice::Margins& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setMargins);

    if (!sipMeth)
    {
         ::QPagedPaintDevice::setMargins(a0);
        return;
    }

    extern void sipVH_QtGui_56(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPagedPaintDevice::Margins&);

    sipVH_QtGui_56(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPagedPaintDevice::setPageSizeMM(const  ::QSizeF& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setPageSizeMM);

    if (!sipMeth)
    {
         ::QPagedPaintDevice::setPageSizeMM(a0);
        return;
    }

    extern void sipVH_QtGui_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QSizeF&);

    sipVH_QtGui_55(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQPagedPaintDevice::setPageSize( ::QPagedPaintDevice::PageSize a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setPageSize);

    if (!sipMeth)
    {
         ::QPagedPaintDevice::setPageSize(a0);
        return;
    }

    extern void sipVH_QtGui_54(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPagedPaintDevice::PageSize);

    sipVH_QtGui_54(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQPagedPaintDevice::newPage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_QPagedPaintDevice,sipName_newPage);

    if (!sipMeth)
        return 0;

    extern bool sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_28(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QPaintEngine* sipQPagedPaintDevice::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_QPagedPaintDevice,sipName_paintEngine);

    if (!sipMeth)
        return 0;

    extern  ::QPaintEngine* sipVH_QtGui_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipQPagedPaintDevice::metric( ::QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return  ::QPagedPaintDevice::metric(a0);

    extern int sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipQPagedPaintDevice::sipProtectVirt_metric(bool sipSelfWasArg, ::QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ?  ::QPaintDevice::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QPagedPaintDevice_metric, "metric(self, 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 || sipIsDerivedClass((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, "newPage(self) -> 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, "setPageSize(self, QPagedPaintDevice.PageSize)\n"
    "setPageSize(self, 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 || sipIsDerivedClass((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, "pageSize(self) -> 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, "setPageSizeMM(self, 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 || sipIsDerivedClass((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, "pageSizeMM(self) -> 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, "setMargins(self, 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 || sipIsDerivedClass((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, "margins(self) -> 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, "setPageLayout(self, 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, "setPageOrientation(self, 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, "setPageMargins(self, QMarginsF) -> bool\n"
    "setPageMargins(self, 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, "pageLayout(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QPagedPaintDevice(void *, const sipTypeDef *);}
static void *cast_QPagedPaintDevice(void *sipCppV, const sipTypeDef *targetType)
{
     ::QPagedPaintDevice *sipCpp = reinterpret_cast< ::QPagedPaintDevice *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQPagedPaintDevice *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPagedPaintDevice(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{191, 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), 190},
    {sipName_A1, static_cast<int>( ::QPagedPaintDevice::A1), 190},
    {sipName_A10, static_cast<int>( ::QPagedPaintDevice::A10), 190},
    {sipName_A2, static_cast<int>( ::QPagedPaintDevice::A2), 190},
    {sipName_A3, static_cast<int>( ::QPagedPaintDevice::A3), 190},
    {sipName_A3Extra, static_cast<int>( ::QPagedPaintDevice::A3Extra), 190},
    {sipName_A4, static_cast<int>( ::QPagedPaintDevice::A4), 190},
    {sipName_A4Extra, static_cast<int>( ::QPagedPaintDevice::A4Extra), 190},
    {sipName_A4Plus, static_cast<int>( ::QPagedPaintDevice::A4Plus), 190},
    {sipName_A4Small, static_cast<int>( ::QPagedPaintDevice::A4Small), 190},
    {sipName_A5, static_cast<int>( ::QPagedPaintDevice::A5), 190},
    {sipName_A5Extra, static_cast<int>( ::QPagedPaintDevice::A5Extra), 190},
    {sipName_A6, static_cast<int>( ::QPagedPaintDevice::A6), 190},
    {sipName_A7, static_cast<int>( ::QPagedPaintDevice::A7), 190},
    {sipName_A8, static_cast<int>( ::QPagedPaintDevice::A8), 190},
    {sipName_A9, static_cast<int>( ::QPagedPaintDevice::A9), 190},
    {sipName_AnsiA, static_cast<int>( ::QPagedPaintDevice::AnsiA), 190},
    {sipName_AnsiB, static_cast<int>( ::QPagedPaintDevice::AnsiB), 190},
    {sipName_AnsiC, static_cast<int>( ::QPagedPaintDevice::AnsiC), 190},
    {sipName_AnsiD, static_cast<int>( ::QPagedPaintDevice::AnsiD), 190},
    {sipName_AnsiE, static_cast<int>( ::QPagedPaintDevice::AnsiE), 190},
    {sipName_ArchA, static_cast<int>( ::QPagedPaintDevice::ArchA), 190},
    {sipName_ArchB, static_cast<int>( ::QPagedPaintDevice::ArchB), 190},
    {sipName_ArchC, static_cast<int>( ::QPagedPaintDevice::ArchC), 190},
    {sipName_ArchD, static_cast<int>( ::QPagedPaintDevice::ArchD), 190},
    {sipName_ArchE, static_cast<int>( ::QPagedPaintDevice::ArchE), 190},
    {sipName_B0, static_cast<int>( ::QPagedPaintDevice::B0), 190},
    {sipName_B1, static_cast<int>( ::QPagedPaintDevice::B1), 190},
    {sipName_B10, static_cast<int>( ::QPagedPaintDevice::B10), 190},
    {sipName_B2, static_cast<int>( ::QPagedPaintDevice::B2), 190},
    {sipName_B3, static_cast<int>( ::QPagedPaintDevice::B3), 190},
    {sipName_B4, static_cast<int>( ::QPagedPaintDevice::B4), 190},
    {sipName_B5, static_cast<int>( ::QPagedPaintDevice::B5), 190},
    {sipName_B5Extra, static_cast<int>( ::QPagedPaintDevice::B5Extra), 190},
    {sipName_B6, static_cast<int>( ::QPagedPaintDevice::B6), 190},
    {sipName_B7, static_cast<int>( ::QPagedPaintDevice::B7), 190},
    {sipName_B8, static_cast<int>( ::QPagedPaintDevice::B8), 190},
    {sipName_B9, static_cast<int>( ::QPagedPaintDevice::B9), 190},
    {sipName_C5E, static_cast<int>( ::QPagedPaintDevice::C5E), 190},
    {sipName_Comm10E, static_cast<int>( ::QPagedPaintDevice::Comm10E), 190},
    {sipName_Custom, static_cast<int>( ::QPagedPaintDevice::Custom), 190},
    {sipName_DLE, static_cast<int>( ::QPagedPaintDevice::DLE), 190},
    {sipName_DoublePostcard, static_cast<int>( ::QPagedPaintDevice::DoublePostcard), 190},
    {sipName_Envelope10, static_cast<int>( ::QPagedPaintDevice::Envelope10), 190},
    {sipName_Envelope11, static_cast<int>( ::QPagedPaintDevice::Envelope11), 190},
    {sipName_Envelope12, static_cast<int>( ::QPagedPaintDevice::Envelope12), 190},
    {sipName_Envelope14, static_cast<int>( ::QPagedPaintDevice::Envelope14), 190},
    {sipName_Envelope9, static_cast<int>( ::QPagedPaintDevice::Envelope9), 190},
    {sipName_EnvelopeB4, static_cast<int>( ::QPagedPaintDevice::EnvelopeB4), 190},
    {sipName_EnvelopeB5, static_cast<int>( ::QPagedPaintDevice::EnvelopeB5), 190},
    {sipName_EnvelopeB6, static_cast<int>( ::QPagedPaintDevice::EnvelopeB6), 190},
    {sipName_EnvelopeC0, static_cast<int>( ::QPagedPaintDevice::EnvelopeC0), 190},
    {sipName_EnvelopeC1, static_cast<int>( ::QPagedPaintDevice::EnvelopeC1), 190},
    {sipName_EnvelopeC2, static_cast<int>( ::QPagedPaintDevice::EnvelopeC2), 190},
    {sipName_EnvelopeC3, static_cast<int>( ::QPagedPaintDevice::EnvelopeC3), 190},
    {sipName_EnvelopeC4, static_cast<int>( ::QPagedPaintDevice::EnvelopeC4), 190},
    {sipName_EnvelopeC5, static_cast<int>( ::QPagedPaintDevice::EnvelopeC5), 190},
    {sipName_EnvelopeC6, static_cast<int>( ::QPagedPaintDevice::EnvelopeC6), 190},
    {sipName_EnvelopeC65, static_cast<int>( ::QPagedPaintDevice::EnvelopeC65), 190},
    {sipName_EnvelopeC7, static_cast<int>( ::QPagedPaintDevice::EnvelopeC7), 190},
    {sipName_EnvelopeChou3, static_cast<int>( ::QPagedPaintDevice::EnvelopeChou3), 190},
    {sipName_EnvelopeChou4, static_cast<int>( ::QPagedPaintDevice::EnvelopeChou4), 190},
    {sipName_EnvelopeDL, static_cast<int>( ::QPagedPaintDevice::EnvelopeDL), 190},
    {sipName_EnvelopeInvite, static_cast<int>( ::QPagedPaintDevice::EnvelopeInvite), 190},
    {sipName_EnvelopeItalian, static_cast<int>( ::QPagedPaintDevice::EnvelopeItalian), 190},
    {sipName_EnvelopeKaku2, static_cast<int>( ::QPagedPaintDevice::EnvelopeKaku2), 190},
    {sipName_EnvelopeKaku3, static_cast<int>( ::QPagedPaintDevice::EnvelopeKaku3), 190},
    {sipName_EnvelopeMonarch, static_cast<int>( ::QPagedPaintDevice::EnvelopeMonarch), 190},
    {sipName_EnvelopePersonal, static_cast<int>( ::QPagedPaintDevice::EnvelopePersonal), 190},
    {sipName_EnvelopePrc1, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc1), 190},
    {sipName_EnvelopePrc10, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc10), 190},
    {sipName_EnvelopePrc2, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc2), 190},
    {sipName_EnvelopePrc3, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc3), 190},
    {sipName_EnvelopePrc4, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc4), 190},
    {sipName_EnvelopePrc5, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc5), 190},
    {sipName_EnvelopePrc6, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc6), 190},
    {sipName_EnvelopePrc7, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc7), 190},
    {sipName_EnvelopePrc8, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc8), 190},
    {sipName_EnvelopePrc9, static_cast<int>( ::QPagedPaintDevice::EnvelopePrc9), 190},
    {sipName_EnvelopeYou4, static_cast<int>( ::QPagedPaintDevice::EnvelopeYou4), 190},
    {sipName_Executive, static_cast<int>( ::QPagedPaintDevice::Executive), 190},
    {sipName_ExecutiveStandard, static_cast<int>( ::QPagedPaintDevice::ExecutiveStandard), 190},
    {sipName_FanFoldGerman, static_cast<int>( ::QPagedPaintDevice::FanFoldGerman), 190},
    {sipName_FanFoldGermanLegal, static_cast<int>( ::QPagedPaintDevice::FanFoldGermanLegal), 190},
    {sipName_FanFoldUS, static_cast<int>( ::QPagedPaintDevice::FanFoldUS), 190},
    {sipName_Folio, static_cast<int>( ::QPagedPaintDevice::Folio), 190},
    {sipName_Imperial10x11, static_cast<int>( ::QPagedPaintDevice::Imperial10x11), 190},
    {sipName_Imperial10x13, static_cast<int>( ::QPagedPaintDevice::Imperial10x13), 190},
    {sipName_Imperial10x14, static_cast<int>( ::QPagedPaintDevice::Imperial10x14), 190},
    {sipName_Imperial12x11, static_cast<int>( ::QPagedPaintDevice::Imperial12x11), 190},
    {sipName_Imperial15x11, static_cast<int>( ::QPagedPaintDevice::Imperial15x11), 190},
    {sipName_Imperial7x9, static_cast<int>( ::QPagedPaintDevice::Imperial7x9), 190},
    {sipName_Imperial8x10, static_cast<int>( ::QPagedPaintDevice::Imperial8x10), 190},
    {sipName_Imperial9x11, static_cast<int>( ::QPagedPaintDevice::Imperial9x11), 190},
    {sipName_Imperial9x12, static_cast<int>( ::QPagedPaintDevice::Imperial9x12), 190},
    {sipName_JisB0, static_cast<int>( ::QPagedPaintDevice::JisB0), 190},
    {sipName_JisB1, static_cast<int>( ::QPagedPaintDevice::JisB1), 190},
    {sipName_JisB10, static_cast<int>( ::QPagedPaintDevice::JisB10), 190},
    {sipName_JisB2, static_cast<int>( ::QPagedPaintDevice::JisB2), 190},
    {sipName_JisB3, static_cast<int>( ::QPagedPaintDevice::JisB3), 190},
    {sipName_JisB4, static_cast<int>( ::QPagedPaintDevice::JisB4), 190},
    {sipName_JisB5, static_cast<int>( ::QPagedPaintDevice::JisB5), 190},
    {sipName_JisB6, static_cast<int>( ::QPagedPaintDevice::JisB6), 190},
    {sipName_JisB7, static_cast<int>( ::QPagedPaintDevice::JisB7), 190},
    {sipName_JisB8, static_cast<int>( ::QPagedPaintDevice::JisB8), 190},
    {sipName_JisB9, static_cast<int>( ::QPagedPaintDevice::JisB9), 190},
    {sipName_LastPageSize, static_cast<int>( ::QPagedPaintDevice::LastPageSize), 190},
    {sipName_Ledger, static_cast<int>( ::QPagedPaintDevice::Ledger), 190},
    {sipName_Legal, static_cast<int>( ::QPagedPaintDevice::Legal), 190},
    {sipName_LegalExtra, static_cast<int>( ::QPagedPaintDevice::LegalExtra), 190},
    {sipName_Letter, static_cast<int>( ::QPagedPaintDevice::Letter), 190},
    {sipName_LetterExtra, static_cast<int>( ::QPagedPaintDevice::LetterExtra), 190},
    {sipName_LetterPlus, static_cast<int>( ::QPagedPaintDevice::LetterPlus), 190},
    {sipName_LetterSmall, static_cast<int>( ::QPagedPaintDevice::LetterSmall), 190},
    {sipName_NPaperSize, static_cast<int>( ::QPagedPaintDevice::NPaperSize), 190},
    {sipName_Note, static_cast<int>( ::QPagedPaintDevice::Note), 190},
    {sipName_Postcard, static_cast<int>( ::QPagedPaintDevice::Postcard), 190},
    {sipName_Prc16K, static_cast<int>( ::QPagedPaintDevice::Prc16K), 190},
    {sipName_Prc32K, static_cast<int>( ::QPagedPaintDevice::Prc32K), 190},
    {sipName_Prc32KBig, static_cast<int>( ::QPagedPaintDevice::Prc32KBig), 190},
    {sipName_Quarto, static_cast<int>( ::QPagedPaintDevice::Quarto), 190},
    {sipName_Statement, static_cast<int>( ::QPagedPaintDevice::Statement), 190},
    {sipName_SuperA, static_cast<int>( ::QPagedPaintDevice::SuperA), 190},
    {sipName_SuperB, static_cast<int>( ::QPagedPaintDevice::SuperB), 190},
    {sipName_Tabloid, static_cast<int>( ::QPagedPaintDevice::Tabloid), 190},
    {sipName_TabloidExtra, static_cast<int>( ::QPagedPaintDevice::TabloidExtra), 190},
};

PyDoc_STRVAR(doc_QPagedPaintDevice, "\1QPagedPaintDevice()");


static pyqt5ClassPluginDef plugin_QPagedPaintDevice = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPagedPaintDevice = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPagedPaintDevice,
        {0},
        &plugin_QPagedPaintDevice
    },
    {
        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
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglwindow.sip"
#include <qopenglwindow.h>
#line 111254 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 111258 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 111261 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 111264 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111267 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111270 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 111273 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 111276 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111279 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 111282 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 111285 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 111288 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 189 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 111291 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 293 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111294 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111297 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111300 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111303 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111306 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111309 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111312 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 372 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111315 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 400 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 111318 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 111321 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 111324 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 111327 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 111330 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 111333 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 111336 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 111339 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 111342 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 111345 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 111348 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 111351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 111354 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 111357 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 111360 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 111363 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 111366 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 111369 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 111372 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 111375 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 111378 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 111381 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 111384 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 111387 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 111390 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLWindow : public  ::QOpenGLWindow
{
public:
    sipQOpenGLWindow( ::QOpenGLWindow::UpdateBehavior, ::QWindow*);
    sipQOpenGLWindow( ::QOpenGLContext*, ::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:
    void paintOverGL();
    void paintUnderGL();
    void paintGL();
    void resizeGL(int,int);
    void initializeGL();
    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*);
    void exposeEvent( ::QExposeEvent*);
     ::QObject* focusObject() const;
     ::QSurfaceFormat format() const;
     ::QSurface::SurfaceType surfaceType() const;
     ::QSize size() const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);
    int metric( ::QPaintDevice::PaintDeviceMetric) const;
     ::QPaintEngine* paintEngine() const;
    void paintEvent( ::QPaintEvent*);

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( ::QOpenGLContext*a0, ::QOpenGLWindow::UpdateBehavior a1, ::QWindow*a2):  ::QOpenGLWindow(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLWindow::~sipQOpenGLWindow()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQOpenGLWindow::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLWindow);

    return  ::QOpenGLWindow::metaObject();
}

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));
}

void sipQOpenGLWindow::paintOverGL()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_paintOverGL);

    if (!sipMeth)
    {
         ::QOpenGLWindow::paintOverGL();
        return;
    }

    extern void sipVH_QtGui_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtGui_39(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQOpenGLWindow::paintUnderGL()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_paintUnderGL);

    if (!sipMeth)
    {
         ::QOpenGLWindow::paintUnderGL();
        return;
    }

    extern void sipVH_QtGui_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtGui_39(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQOpenGLWindow::paintGL()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_paintGL);

    if (!sipMeth)
    {
         ::QOpenGLWindow::paintGL();
        return;
    }

    extern void sipVH_QtGui_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtGui_39(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQOpenGLWindow::resizeGL(int a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_resizeGL);

    if (!sipMeth)
    {
         ::QOpenGLWindow::resizeGL(a0,a1);
        return;
    }

    extern void sipVH_QtGui_53(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);

    sipVH_QtGui_53(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLWindow::initializeGL()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_initializeGL);

    if (!sipMeth)
    {
         ::QOpenGLWindow::initializeGL();
        return;
    }

    extern void sipVH_QtGui_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtGui_39(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQOpenGLWindow::tabletEvent( ::QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::tabletEvent(a0);
        return;
    }

    extern void sipVH_QtGui_51(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTabletEvent*);

    sipVH_QtGui_51(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::touchEvent( ::QTouchEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_touchEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::touchEvent(a0);
        return;
    }

    extern void sipVH_QtGui_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTouchEvent*);

    sipVH_QtGui_50(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::wheelEvent( ::QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::wheelEvent(a0);
        return;
    }

    extern void sipVH_QtGui_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWheelEvent*);

    sipVH_QtGui_49(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::mouseMoveEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::mouseMoveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::mouseDoubleClickEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::mouseDoubleClickEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::mouseReleaseEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::mouseReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::mousePressEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::mousePressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_QtGui_48(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::keyReleaseEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::keyReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_QtGui_47(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::keyPressEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::keyPressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_QtGui_47(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::hideEvent( ::QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::hideEvent(a0);
        return;
    }

    extern void sipVH_QtGui_46(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QHideEvent*);

    sipVH_QtGui_46(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::showEvent( ::QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::showEvent(a0);
        return;
    }

    extern void sipVH_QtGui_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QShowEvent*);

    sipVH_QtGui_45(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::focusOutEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::focusOutEvent(a0);
        return;
    }

    extern void sipVH_QtGui_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_QtGui_44(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::focusInEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::focusInEvent(a0);
        return;
    }

    extern void sipVH_QtGui_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_QtGui_44(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::moveEvent( ::QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::moveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMoveEvent*);

    sipVH_QtGui_43(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::resizeEvent( ::QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::resizeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QResizeEvent*);

    sipVH_QtGui_42(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::exposeEvent( ::QExposeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_exposeEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::exposeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QExposeEvent*);

    sipVH_QtGui_41(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_40(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSurfaceFormat sipQOpenGLWindow::format() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_format);

    if (!sipMeth)
        return  ::QOpenGLWindow::format();

    extern  ::QSurfaceFormat sipVH_QtGui_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_36(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSurface::SurfaceType sipQOpenGLWindow::surfaceType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,NULL,sipName_surfaceType);

    if (!sipMeth)
        return  ::QOpenGLWindow::surfaceType();

    extern  ::QSurface::SurfaceType sipVH_QtGui_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_37(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSize sipQOpenGLWindow::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return  ::QOpenGLWindow::size();

    extern  ::QSize sipVH_QtGui_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_38(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQOpenGLWindow::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QOpenGLWindow::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLWindow::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QOpenGLWindow::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QOpenGLWindow::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QOpenGLWindow::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipQOpenGLWindow::metric( ::QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return  ::QOpenGLWindow::metric(a0);

    extern int sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QPaintEngine* sipQOpenGLWindow::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,sipName_QOpenGLWindow,sipName_paintEngine);

    if (!sipMeth)
        return 0;

    extern  ::QPaintEngine* sipVH_QtGui_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQOpenGLWindow::paintEvent( ::QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],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, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 112348 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 112408 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "moveEvent(self, 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 || sipIsDerivedClass((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, "focusInEvent(self, 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 || sipIsDerivedClass((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, "focusOutEvent(self, 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 || sipIsDerivedClass((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, "showEvent(self, 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 || sipIsDerivedClass((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, "hideEvent(self, 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 || sipIsDerivedClass((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, "keyPressEvent(self, 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 || sipIsDerivedClass((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, "keyReleaseEvent(self, 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 || sipIsDerivedClass((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, "mousePressEvent(self, 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 || sipIsDerivedClass((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, "mouseReleaseEvent(self, 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 || sipIsDerivedClass((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, "mouseDoubleClickEvent(self, 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 || sipIsDerivedClass((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, "mouseMoveEvent(self, 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 || sipIsDerivedClass((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, "wheelEvent(self, 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 || sipIsDerivedClass((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, "touchEvent(self, 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 || sipIsDerivedClass((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, "tabletEvent(self, 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 || sipIsDerivedClass((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, "exposeEvent(self, 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 || sipIsDerivedClass((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, "event(self, 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 || sipIsDerivedClass((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, "updateBehavior(self) -> 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, "isValid(self) -> 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, "makeCurrent(self)");

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, "doneCurrent(self)");

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, "context(self) -> 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, "defaultFramebufferObject(self) -> 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, "grabFramebuffer(self) -> 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_shareContext, "shareContext(self) -> QOpenGLContext");

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

    {
        const  ::QOpenGLWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLWindow, &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_QOpenGLWindow, sipName_shareContext, doc_QOpenGLWindow_shareContext);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_initializeGL, "initializeGL(self)");

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 || sipIsDerivedClass((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, "resizeGL(self, 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 || sipIsDerivedClass((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, "paintGL(self)");

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 || sipIsDerivedClass((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, "paintUnderGL(self)");

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 || sipIsDerivedClass((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, "paintOverGL(self)");

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 || sipIsDerivedClass((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, "paintEvent(self, 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 || sipIsDerivedClass((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, "resizeEvent(self, 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 || sipIsDerivedClass((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, "metric(self, 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 || sipIsDerivedClass((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 inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLWindow(void *, const sipTypeDef *);}
static void *cast_QOpenGLWindow(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLWindow *sipCpp = reinterpret_cast< ::QOpenGLWindow *>(sipCppV);

    if (targetType == sipType_QPaintDeviceWindow)
        return static_cast< ::QPaintDeviceWindow *>(sipCpp);

    if (targetType == sipType_QWindow)
        return static_cast< ::QWindow *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_QSurface)
        return static_cast< ::QSurface *>(sipCpp);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLWindow *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLWindow(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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;
        }
    }

    {
         ::QOpenGLContext* a0;
         ::QOpenGLWindow::UpdateBehavior a1 = QOpenGLWindow::NoPartialUpdate;
         ::QWindow* a2 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8|EJH", sipType_QOpenGLContext, &a0, sipType_QOpenGLWindow_UpdateBehavior, &a1, sipType_QWindow, &a2, sipOwner))
        {
            sipCpp = new sipQOpenGLWindow(a0,a1,a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLWindow[] = {{193, 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_shareContext), meth_QOpenGLWindow_shareContext, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLWindow_shareContext)},
    {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), 179},
    {sipName_PartialUpdateBlend, static_cast<int>( ::QOpenGLWindow::PartialUpdateBlend), 179},
    {sipName_PartialUpdateBlit, static_cast<int>( ::QOpenGLWindow::PartialUpdateBlit), 179},
};

PyDoc_STRVAR(doc_QOpenGLWindow, "\1QOpenGLWindow(updateBehavior: QOpenGLWindow.UpdateBehavior = QOpenGLWindow.NoPartialUpdate, parent: QWindow = None)\n"
    "QOpenGLWindow(QOpenGLContext, updateBehavior: QOpenGLWindow.UpdateBehavior = QOpenGLWindow.NoPartialUpdate, parent: QWindow = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QOpenGLWindow[] = {
    {"frameSwapped()", "\1frameSwapped(self)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QOpenGLWindow = {
    & ::QOpenGLWindow::staticMetaObject,
    0,
    signals_QOpenGLWindow,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLWindow = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLWindow,
        {0},
        &plugin_QOpenGLWindow
    },
    {
        sipNameNr_QOpenGLWindow,
        {0, 0, 1},
        41, 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
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevicewindow.sip"
#include <qpaintdevicewindow.h>
#line 113773 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 113777 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113780 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 113783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113786 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 113789 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 113792 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 113795 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 113798 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 189 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 113801 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 293 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113804 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113807 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113810 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113813 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113816 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113819 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113822 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 372 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113825 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 400 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113828 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 113831 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 113834 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 113837 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 113840 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 113843 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 113846 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 113849 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 113852 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 113855 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 113858 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 113861 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 113864 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 113867 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 113870 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 113873 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 113876 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 113879 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 113882 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 113885 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 113888 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 113891 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 113894 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 113897 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 113900 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 113903 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPaintDeviceWindow_update, "update(self, QRect)\n"
    "update(self, QRegion)\n"
    "update(self)");

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 inheritance hierarchy. */
extern "C" {static void *cast_QPaintDeviceWindow(void *, const sipTypeDef *);}
static void *cast_QPaintDeviceWindow(void *sipCppV, const sipTypeDef *targetType)
{
     ::QPaintDeviceWindow *sipCpp = reinterpret_cast< ::QPaintDeviceWindow *>(sipCppV);

    if (targetType == sipType_QWindow)
        return static_cast< ::QWindow *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_QSurface)
        return static_cast< ::QSurface *>(sipCpp);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_QPaintDeviceWindow(sipGetAddress(sipSelf), 0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPaintDeviceWindow[] = {{375, 255, 0}, {191, 255, 1}};


static PyMethodDef methods_QPaintDeviceWindow[] = {
    {SIP_MLNAME_CAST(sipName_update), meth_QPaintDeviceWindow_update, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDeviceWindow_update)}
};


static pyqt5ClassPluginDef plugin_QPaintDeviceWindow = {
    & ::QPaintDeviceWindow::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPaintDeviceWindow = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPaintDeviceWindow,
        {0},
        &plugin_QPaintDeviceWindow
    },
    {
        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
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglvertexarrayobject.sip"
#include <qopenglvertexarrayobject.h>
#line 45 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglvertexarrayobject.sip"
#include <qopenglvertexarrayobject.h>
#line 114078 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglvertexarrayobject.sip"
#include <qopenglvertexarrayobject.h>
#line 114082 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_Binder_release, "release(self)");

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, "rebind(self)");

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__, "__enter__(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglvertexarrayobject.sip"
            // Just return a reference to self.
            sipRes = sipSelf;
            Py_INCREF(sipRes);
#line 114158 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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__, "__exit__(self, 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglvertexarrayobject.sip"
            sipCpp->release();
#line 114189 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QOpenGLVertexArrayObject_Binder = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLVertexArrayObject_Binder = {
    {
        -1,
        0,
        0,
        SIP_TYPE_NONLAZY|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLVertexArrayObject__Binder,
        {0},
        &plugin_QOpenGLVertexArrayObject_Binder
    },
    {
        sipNameNr_Binder,
        {176, 255, 0},
        4, methods_QOpenGLVertexArrayObject_Binder,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLVertexArrayObject_Binder,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglvertexarrayobject.sip"
#include <qopenglvertexarrayobject.h>
#line 114311 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 114315 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 114318 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 114321 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 114324 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 114327 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 114330 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 114333 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 114336 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 114339 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 114342 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 114345 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 114348 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 114351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 114354 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 114357 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 114360 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQOpenGLVertexArrayObject::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLVertexArrayObject);

    return  ::QOpenGLVertexArrayObject::metaObject();
}

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));
}

bool sipQOpenGLVertexArrayObject::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QOpenGLVertexArrayObject::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQOpenGLVertexArrayObject::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QOpenGLVertexArrayObject::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLVertexArrayObject::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QOpenGLVertexArrayObject::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLVertexArrayObject::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QOpenGLVertexArrayObject::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLVertexArrayObject::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QOpenGLVertexArrayObject::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLVertexArrayObject::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QOpenGLVertexArrayObject::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 114654 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 114714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "create(self) -> 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, "destroy(self)");

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, "isCreated(self) -> 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, "objectId(self) -> 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, "bind(self)");

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, "release(self)");

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 inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLVertexArrayObject(void *, const sipTypeDef *);}
static void *cast_QOpenGLVertexArrayObject(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLVertexArrayObject *sipCpp = reinterpret_cast< ::QOpenGLVertexArrayObject *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLVertexArrayObject *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLVertexArrayObject(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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(parent: QObject = None)");


static pyqt5ClassPluginDef plugin_QOpenGLVertexArrayObject = {
    & ::QOpenGLVertexArrayObject::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLVertexArrayObject = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLVertexArrayObject,
        {0},
        &plugin_QOpenGLVertexArrayObject
    },
    {
        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
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglversionfunctions.sip"
#include <qopenglversionfunctions.h>
#line 115252 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"



/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_QAbstractOpenGLFunctions(sipGetAddress(sipSelf), 0);
    }
}


static pyqt5ClassPluginDef plugin_QAbstractOpenGLFunctions = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QAbstractOpenGLFunctions = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QAbstractOpenGLFunctions,
        {0},
        &plugin_QAbstractOpenGLFunctions
    },
    {
        sipNameNr_QAbstractOpenGLFunctions,
        {0, 0, 1},
        0, 0,
        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
    dealloc_QAbstractOpenGLFunctions,
    0,
    0,
    0,
    release_QAbstractOpenGLFunctions,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 58 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengltimerquery.sip"
#include <qopengltimerquery.h>
#line 115333 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 115337 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 347 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#include <qopengl.h>
#line 115341 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 115344 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 115347 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 115350 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 115353 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 115356 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 115359 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 115362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 115365 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 115368 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 115371 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 115374 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 115377 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 115380 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 115383 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 115386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 115389 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQOpenGLTimeMonitor::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLTimeMonitor);

    return  ::QOpenGLTimeMonitor::metaObject();
}

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));
}

bool sipQOpenGLTimeMonitor::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QOpenGLTimeMonitor::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQOpenGLTimeMonitor::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QOpenGLTimeMonitor::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLTimeMonitor::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QOpenGLTimeMonitor::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimeMonitor::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QOpenGLTimeMonitor::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimeMonitor::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QOpenGLTimeMonitor::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimeMonitor::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QOpenGLTimeMonitor::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 115683 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 115743 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "setSampleCount(self, 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, "sampleCount(self) -> 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, "create(self) -> 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, "destroy(self)");

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, "isCreated(self) -> 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, "objectIds(self) -> List[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, "recordSample(self) -> 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, "isResultAvailable(self) -> 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, "waitForSamples(self) -> List[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, "waitForIntervals(self) -> List[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, "reset(self)");

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 inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLTimeMonitor(void *, const sipTypeDef *);}
static void *cast_QOpenGLTimeMonitor(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLTimeMonitor *sipCpp = reinterpret_cast< ::QOpenGLTimeMonitor *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLTimeMonitor *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLTimeMonitor(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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(parent: QObject = None)");


static pyqt5ClassPluginDef plugin_QOpenGLTimeMonitor = {
    & ::QOpenGLTimeMonitor::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLTimeMonitor = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTimeMonitor,
        {0},
        &plugin_QOpenGLTimeMonitor
    },
    {
        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
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengltimerquery.sip"
#include <qopengltimerquery.h>
#line 116431 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 116435 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 116438 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 116441 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 116444 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 116447 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 116450 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 116453 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 116456 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 116459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 116462 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 116465 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 116468 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 116471 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 116474 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 116477 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 116480 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQOpenGLTimerQuery::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLTimerQuery);

    return  ::QOpenGLTimerQuery::metaObject();
}

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));
}

bool sipQOpenGLTimerQuery::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QOpenGLTimerQuery::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQOpenGLTimerQuery::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QOpenGLTimerQuery::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLTimerQuery::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QOpenGLTimerQuery::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimerQuery::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QOpenGLTimerQuery::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimerQuery::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QOpenGLTimerQuery::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimerQuery::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QOpenGLTimerQuery::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 116774 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 116834 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "create(self) -> 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, "destroy(self)");

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, "isCreated(self) -> 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, "objectId(self) -> 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, "begin(self)");

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, "end(self)");

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, "waitForTimestamp(self) -> 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, "recordTimestamp(self)");

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, "isResultAvailable(self) -> 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, "waitForResult(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLTimerQuery(void *, const sipTypeDef *);}
static void *cast_QOpenGLTimerQuery(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLTimerQuery *sipCpp = reinterpret_cast< ::QOpenGLTimerQuery *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLTimerQuery *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLTimerQuery(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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(parent: QObject = None)");


static pyqt5ClassPluginDef plugin_QOpenGLTimerQuery = {
    & ::QOpenGLTimerQuery::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLTimerQuery = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTimerQuery,
        {0},
        &plugin_QOpenGLTimerQuery
    },
    {
        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
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengltextureblitter.sip"
#include <qopengltextureblitter.h>
#line 117491 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 117495 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 117498 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 117501 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 117504 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 117507 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_create, "create(self) -> bool");

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

    {
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->create();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_create, doc_QOpenGLTextureBlitter_create);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_isCreated, "isCreated(self) -> bool");

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

    {
        const  ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCreated();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_isCreated, doc_QOpenGLTextureBlitter_isCreated);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_destroy, "destroy(self)");

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

    {
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            sipCpp->destroy();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_destroy, doc_QOpenGLTextureBlitter_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_supportsExternalOESTarget, "supportsExternalOESTarget(self) -> bool");

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

    {
        const  ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->supportsExternalOESTarget();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_supportsExternalOESTarget, doc_QOpenGLTextureBlitter_supportsExternalOESTarget);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_bind, "bind(self, target: int = GL_TEXTURE_2D)");

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

    {
         ::GLenum a0 = GL_TEXTURE_2D;
         ::QOpenGLTextureBlitter *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|u", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp, &a0))
        {
            sipCpp->bind(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_bind, doc_QOpenGLTextureBlitter_bind);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_release, "release(self)");

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

    {
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp))
        {
            sipCpp->release();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_release, doc_QOpenGLTextureBlitter_release);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_setRedBlueSwizzle, "setRedBlueSwizzle(self, bool)");

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

    {
        bool a0;
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp, &a0))
        {
            sipCpp->setRedBlueSwizzle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_setRedBlueSwizzle, doc_QOpenGLTextureBlitter_setRedBlueSwizzle);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_setOpacity, "setOpacity(self, float)");

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

    {
        float a0;
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QOpenGLTextureBlitter, &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_QOpenGLTextureBlitter, sipName_setOpacity, doc_QOpenGLTextureBlitter_setOpacity);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_blit, "blit(self, int, QMatrix4x4, QOpenGLTextureBlitter.Origin)\n"
    "blit(self, int, QMatrix4x4, QMatrix3x3)");

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

    {
         ::GLuint a0;
        const  ::QMatrix4x4* a1;
         ::QOpenGLTextureBlitter::Origin a2;
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BuJ9E", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp, &a0, sipType_QMatrix4x4, &a1, sipType_QOpenGLTextureBlitter_Origin, &a2))
        {
            sipCpp->blit(a0,*a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
         ::GLuint a0;
        const  ::QMatrix4x4* a1;
        const  ::QMatrix3x3* a2;
         ::QOpenGLTextureBlitter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BuJ9J9", &sipSelf, sipType_QOpenGLTextureBlitter, &sipCpp, &a0, sipType_QMatrix4x4, &a1, sipType_QMatrix3x3, &a2))
        {
            sipCpp->blit(a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_blit, doc_QOpenGLTextureBlitter_blit);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_targetTransform, "targetTransform(QRectF, QRect) -> QMatrix4x4");

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

    {
        const  ::QRectF* a0;
        const  ::QRect* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QRectF, &a0, sipType_QRect, &a1))
        {
             ::QMatrix4x4*sipRes;

            sipRes = new  ::QMatrix4x4( ::QOpenGLTextureBlitter::targetTransform(*a0,*a1));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_targetTransform, doc_QOpenGLTextureBlitter_targetTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTextureBlitter_sourceTransform, "sourceTransform(QRectF, QSize, QOpenGLTextureBlitter.Origin) -> QMatrix3x3");

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

    {
        const  ::QRectF* a0;
        const  ::QSize* a1;
         ::QOpenGLTextureBlitter::Origin a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9E", sipType_QRectF, &a0, sipType_QSize, &a1, sipType_QOpenGLTextureBlitter_Origin, &a2))
        {
             ::QMatrix3x3*sipRes;

            sipRes = new  ::QMatrix3x3( ::QOpenGLTextureBlitter::sourceTransform(*a0,*a1,a2));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTextureBlitter, sipName_sourceTransform, doc_QOpenGLTextureBlitter_sourceTransform);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLTextureBlitter(void *, int);}
static void release_QOpenGLTextureBlitter(void *sipCppV, int)
{
    delete reinterpret_cast< ::QOpenGLTextureBlitter *>(sipCppV);
}


extern "C" {static void dealloc_QOpenGLTextureBlitter(sipSimpleWrapper *);}
static void dealloc_QOpenGLTextureBlitter(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLTextureBlitter(sipGetAddress(sipSelf), 0);
    }
}


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QOpenGLTextureBlitter();

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QOpenGLTextureBlitter[] = {
    {SIP_MLNAME_CAST(sipName_bind), (PyCFunction)meth_QOpenGLTextureBlitter_bind, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_bind)},
    {SIP_MLNAME_CAST(sipName_blit), meth_QOpenGLTextureBlitter_blit, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_blit)},
    {SIP_MLNAME_CAST(sipName_create), meth_QOpenGLTextureBlitter_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_create)},
    {SIP_MLNAME_CAST(sipName_destroy), meth_QOpenGLTextureBlitter_destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_destroy)},
    {SIP_MLNAME_CAST(sipName_isCreated), meth_QOpenGLTextureBlitter_isCreated, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_isCreated)},
    {SIP_MLNAME_CAST(sipName_release), meth_QOpenGLTextureBlitter_release, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_release)},
    {SIP_MLNAME_CAST(sipName_setOpacity), meth_QOpenGLTextureBlitter_setOpacity, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_setOpacity)},
    {SIP_MLNAME_CAST(sipName_setRedBlueSwizzle), meth_QOpenGLTextureBlitter_setRedBlueSwizzle, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_setRedBlueSwizzle)},
    {SIP_MLNAME_CAST(sipName_sourceTransform), meth_QOpenGLTextureBlitter_sourceTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_sourceTransform)},
    {SIP_MLNAME_CAST(sipName_supportsExternalOESTarget), meth_QOpenGLTextureBlitter_supportsExternalOESTarget, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_supportsExternalOESTarget)},
    {SIP_MLNAME_CAST(sipName_targetTransform), meth_QOpenGLTextureBlitter_targetTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTextureBlitter_targetTransform)}
};

static sipEnumMemberDef enummembers_QOpenGLTextureBlitter[] = {
    {sipName_OriginBottomLeft, static_cast<int>( ::QOpenGLTextureBlitter::OriginBottomLeft), 172},
    {sipName_OriginTopLeft, static_cast<int>( ::QOpenGLTextureBlitter::OriginTopLeft), 172},
};

PyDoc_STRVAR(doc_QOpenGLTextureBlitter, "\1QOpenGLTextureBlitter()");


static pyqt5ClassPluginDef plugin_QOpenGLTextureBlitter = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLTextureBlitter = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTextureBlitter,
        {0},
        &plugin_QOpenGLTextureBlitter
    },
    {
        sipNameNr_QOpenGLTextureBlitter,
        {0, 0, 1},
        11, methods_QOpenGLTextureBlitter,
        2, enummembers_QOpenGLTextureBlitter,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLTextureBlitter,
    -1,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QOpenGLTextureBlitter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLTextureBlitter,
    0,
    0,
    0,
    release_QOpenGLTextureBlitter,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 117960 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 117964 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QOpenGLTexture_Features___hash__(PyObject *);}
static long slot_QOpenGLTexture_Features___hash__(PyObject *sipSelf)
{
     ::QOpenGLTexture::Features *sipCpp = reinterpret_cast< ::QOpenGLTexture::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLTexture_Features));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QOpenGLTexture::Features::Int();
#line 117982 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLTexture::Features::Int() != 0);
#line 118007 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLTexture::Features::Int() != a0->operator QOpenGLTexture::Features::Int());
#line 118037 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLTexture::Features::Int() == a0->operator QOpenGLTexture::Features::Int());
#line 118073 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLTexture::Features(*sipCpp ^ a0);
#line 118112 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLTexture_Features___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLTexture::Features(*sipCpp | a0);
#line 118184 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLTexture_Features___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QOpenGLTexture::Features();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QOpenGLTexture::Features(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 118452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLTexture_Features[] = {
    {(void *)slot_QOpenGLTexture_Features___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QOpenGLTexture_Features___xor__, xor_slot},
    {(void *)slot_QOpenGLTexture_Features___ior__, ior_slot},
    {(void *)slot_QOpenGLTexture_Features___or__, or_slot},
    {(void *)slot_QOpenGLTexture_Features___iand__, iand_slot},
    {(void *)slot_QOpenGLTexture_Features___and__, and_slot},
    {(void *)slot_QOpenGLTexture_Features___invert__, invert_slot},
    {(void *)slot_QOpenGLTexture_Features___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLTexture_Features, "\1QOpenGLTexture.Features()\n"
    "QOpenGLTexture.Features(Union[QOpenGLTexture.Features, QOpenGLTexture.Feature])\n"
    "QOpenGLTexture.Features(QOpenGLTexture.Features)");


static pyqt5ClassPluginDef plugin_QOpenGLTexture_Features = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLTexture_Features = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTexture__Features,
        {0},
        &plugin_QOpenGLTexture_Features
    },
    {
        sipNameNr_Features,
        {152, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLTexture_Features,
    -1,
    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,
    0,
    convertTo_QOpenGLTexture_Features,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 118538 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 118542 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qpair.sip"
#include <qpair.h>
#line 118545 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 118548 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qpair.sip"
#include <QOpenGLTexture>
#line 118551 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 133 "sip/QtCore/qpycore_qpair.sip"
#include <qpair.h>
#line 118554 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglpixeltransferoptions.sip"
#include <qopenglpixeltransferoptions.h>
#line 118557 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLTexture_create, "create(self) -> 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, "destroy(self)");

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, "isCreated(self) -> 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, "textureId(self) -> 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, "bind(self)\n"
    "bind(self, int, reset: QOpenGLTexture.TextureUnitReset = 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, "release(self)\n"
    "release(self, int, reset: QOpenGLTexture.TextureUnitReset = 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, "isBound(self) -> bool\n"
    "isBound(self, 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, "boundTextureId(QOpenGLTexture.BindingTarget) -> int\n"
    "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, "setFormat(self, 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, "format(self) -> 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, "setSize(self, int, height: int = 1, depth: int = 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, "width(self) -> 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, "height(self) -> 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, "depth(self) -> 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, "setMipLevels(self, 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, "mipLevels(self) -> 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, "maximumMipLevels(self) -> 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, "setLayers(self, 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, "layers(self) -> 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, "faces(self) -> 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, "allocateStorage(self)\n"
    "allocateStorage(self, QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType)");

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;
        }
    }

    {
         ::QOpenGLTexture::PixelFormat a0;
         ::QOpenGLTexture::PixelType a1;
         ::QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_PixelFormat, &a0, sipType_QOpenGLTexture_PixelType, &a1))
        {
            sipCpp->allocateStorage(a0,a1);

            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, "isStorageAllocated(self) -> 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, "createTextureView(self, 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, "isTextureView(self) -> 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, "setData(self, int, int, QOpenGLTexture.CubeMapFace, QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType, sip.voidptr, options: QOpenGLPixelTransferOptions = None)\n"
    "setData(self, int, int, QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType, sip.voidptr, options: QOpenGLPixelTransferOptions = None)\n"
    "setData(self, int, QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType, sip.voidptr, options: QOpenGLPixelTransferOptions = None)\n"
    "setData(self, QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType, sip.voidptr, options: QOpenGLPixelTransferOptions = None)\n"
    "setData(self, QImage, genMipMaps: QOpenGLTexture.MipMapGeneration = QOpenGLTexture.GenerateMipMaps)\n"
    "setData(self, int, int, int, QOpenGLTexture.CubeMapFace, QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType, sip.voidptr, options: QOpenGLPixelTransferOptions = None)");

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;
        }
    }

    {
        int a0;
        int a1;
        int a2;
         ::QOpenGLTexture::CubeMapFace a3;
         ::QOpenGLTexture::PixelFormat a4;
         ::QOpenGLTexture::PixelType a5;
        const void* a6;
        const  ::QOpenGLPixelTransferOptions* const a7 = 0;
         ::QOpenGLTexture *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiiEEEv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1, &a2, sipType_QOpenGLTexture_CubeMapFace, &a3, sipType_QOpenGLTexture_PixelFormat, &a4, sipType_QOpenGLTexture_PixelType, &a5, &a6, sipType_QOpenGLPixelTransferOptions, &a7))
        {
            sipCpp->setData(a0,a1,a2,a3,a4,a5,a6,a7);

            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, "setCompressedData(self, int, int, QOpenGLTexture.CubeMapFace, int, sip.voidptr, options: QOpenGLPixelTransferOptions = None)\n"
    "setCompressedData(self, int, int, int, sip.voidptr, options: QOpenGLPixelTransferOptions = None)\n"
    "setCompressedData(self, int, int, sip.voidptr, options: QOpenGLPixelTransferOptions = None)\n"
    "setCompressedData(self, int, sip.voidptr, options: QOpenGLPixelTransferOptions = None)\n"
    "setCompressedData(self, int, int, int, QOpenGLTexture.CubeMapFace, int, sip.voidptr, options: QOpenGLPixelTransferOptions = 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;
        }
    }

    {
        int a0;
        int a1;
        int a2;
         ::QOpenGLTexture::CubeMapFace a3;
        int 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, "BiiiEiv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1, &a2, sipType_QOpenGLTexture_CubeMapFace, &a3, &a4, &a5, sipType_QOpenGLPixelTransferOptions, &a6))
        {
            sipCpp->setCompressedData(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_QOpenGLTexture, sipName_setCompressedData, doc_QOpenGLTexture_setCompressedData);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_hasFeature, "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, "setMipBaseLevel(self, 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, "mipBaseLevel(self) -> 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, "setMipMaxLevel(self, 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, "mipMaxLevel(self) -> 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, "setMipLevelRange(self, 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, "mipLevelRange(self) -> Tuple[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, "setAutoMipMapGenerationEnabled(self, 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, "isAutoMipMapGenerationEnabled(self) -> 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, "generateMipMaps(self)\n"
    "generateMipMaps(self, int, resetBaseLevel: bool = 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, "setSwizzleMask(self, QOpenGLTexture.SwizzleComponent, QOpenGLTexture.SwizzleValue)\n"
    "setSwizzleMask(self, 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, "swizzleMask(self, 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, "setDepthStencilMode(self, 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, "depthStencilMode(self) -> 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, "setMinificationFilter(self, 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, "minificationFilter(self) -> 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, "setMagnificationFilter(self, 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, "magnificationFilter(self) -> 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, "setMinMagFilters(self, 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, "minMagFilters(self) -> Tuple[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, "setMaximumAnisotropy(self, 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, "maximumAnisotropy(self) -> 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, "setWrapMode(self, QOpenGLTexture.WrapMode)\n"
    "setWrapMode(self, 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, "wrapMode(self, 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, "setBorderColor(self, Union[QColor, Qt.GlobalColor, QGradient])");

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, "borderColor(self) -> 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, "setMinimumLevelOfDetail(self, 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, "minimumLevelOfDetail(self) -> 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, "setMaximumLevelOfDetail(self, 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, "maximumLevelOfDetail(self) -> 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, "setLevelOfDetailRange(self, 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, "levelOfDetailRange(self) -> Tuple[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, "setLevelofDetailBias(self, 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, "levelofDetailBias(self) -> 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, "target(self) -> 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, "setSamples(self, 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, "samples(self) -> 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, "setFixedSamplePositions(self, 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, "isFixedSamplePositions(self) -> 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;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setComparisonFunction, "setComparisonFunction(self, QOpenGLTexture.ComparisonFunction)");

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

    {
         ::QOpenGLTexture::ComparisonFunction a0;
         ::QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_ComparisonFunction, &a0))
        {
            sipCpp->setComparisonFunction(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setComparisonFunction, doc_QOpenGLTexture_setComparisonFunction);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_comparisonFunction, "comparisonFunction(self) -> QOpenGLTexture.ComparisonFunction");

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

    {
        const  ::QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
             ::QOpenGLTexture::ComparisonFunction sipRes;

            sipRes = sipCpp->comparisonFunction();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLTexture_ComparisonFunction);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_comparisonFunction, doc_QOpenGLTexture_comparisonFunction);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setComparisonMode, "setComparisonMode(self, QOpenGLTexture.ComparisonMode)");

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

    {
         ::QOpenGLTexture::ComparisonMode a0;
         ::QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_ComparisonMode, &a0))
        {
            sipCpp->setComparisonMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setComparisonMode, doc_QOpenGLTexture_setComparisonMode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_comparisonMode, "comparisonMode(self) -> QOpenGLTexture.ComparisonMode");

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

    {
        const  ::QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
             ::QOpenGLTexture::ComparisonMode sipRes;

            sipRes = sipCpp->comparisonMode();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLTexture_ComparisonMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_comparisonMode, doc_QOpenGLTexture_comparisonMode);

    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 (sipIsOwnedByPython(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_comparisonFunction), meth_QOpenGLTexture_comparisonFunction, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_comparisonFunction)},
    {SIP_MLNAME_CAST(sipName_comparisonMode), meth_QOpenGLTexture_comparisonMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_comparisonMode)},
    {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_setComparisonFunction), meth_QOpenGLTexture_setComparisonFunction, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setComparisonFunction)},
    {SIP_MLNAME_CAST(sipName_setComparisonMode), meth_QOpenGLTexture_setComparisonMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setComparisonMode)},
    {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), 163},
    {sipName_AlphaFormat, static_cast<int>( ::QOpenGLTexture::AlphaFormat), 168},
    {sipName_AlphaValue, static_cast<int>( ::QOpenGLTexture::AlphaValue), 166},
    {sipName_AnisotropicFiltering, static_cast<int>( ::QOpenGLTexture::AnisotropicFiltering), 159},
    {sipName_BGR, static_cast<int>( ::QOpenGLTexture::BGR), 163},
    {sipName_BGRA, static_cast<int>( ::QOpenGLTexture::BGRA), 163},
    {sipName_BGRA_Integer, static_cast<int>( ::QOpenGLTexture::BGRA_Integer), 163},
    {sipName_BGR_Integer, static_cast<int>( ::QOpenGLTexture::BGR_Integer), 163},
    {sipName_BindingTarget1D, static_cast<int>( ::QOpenGLTexture::BindingTarget1D), 153},
    {sipName_BindingTarget1DArray, static_cast<int>( ::QOpenGLTexture::BindingTarget1DArray), 153},
    {sipName_BindingTarget2D, static_cast<int>( ::QOpenGLTexture::BindingTarget2D), 153},
    {sipName_BindingTarget2DArray, static_cast<int>( ::QOpenGLTexture::BindingTarget2DArray), 153},
    {sipName_BindingTarget2DMultisample, static_cast<int>( ::QOpenGLTexture::BindingTarget2DMultisample), 153},
    {sipName_BindingTarget2DMultisampleArray, static_cast<int>( ::QOpenGLTexture::BindingTarget2DMultisampleArray), 153},
    {sipName_BindingTarget3D, static_cast<int>( ::QOpenGLTexture::BindingTarget3D), 153},
    {sipName_BindingTargetBuffer, static_cast<int>( ::QOpenGLTexture::BindingTargetBuffer), 153},
    {sipName_BindingTargetCubeMap, static_cast<int>( ::QOpenGLTexture::BindingTargetCubeMap), 153},
    {sipName_BindingTargetCubeMapArray, static_cast<int>( ::QOpenGLTexture::BindingTargetCubeMapArray), 153},
    {sipName_BindingTargetRectangle, static_cast<int>( ::QOpenGLTexture::BindingTargetRectangle), 153},
    {sipName_BlueValue, static_cast<int>( ::QOpenGLTexture::BlueValue), 166},
    {sipName_ClampToBorder, static_cast<int>( ::QOpenGLTexture::ClampToBorder), 170},
    {sipName_ClampToEdge, static_cast<int>( ::QOpenGLTexture::ClampToEdge), 170},
    {sipName_CommpareNotEqual, static_cast<int>( ::QOpenGLTexture::CommpareNotEqual), 154},
    {sipName_CompareAlways, static_cast<int>( ::QOpenGLTexture::CompareAlways), 154},
    {sipName_CompareEqual, static_cast<int>( ::QOpenGLTexture::CompareEqual), 154},
    {sipName_CompareGreater, static_cast<int>( ::QOpenGLTexture::CompareGreater), 154},
    {sipName_CompareGreaterEqual, static_cast<int>( ::QOpenGLTexture::CompareGreaterEqual), 154},
    {sipName_CompareLess, static_cast<int>( ::QOpenGLTexture::CompareLess), 154},
    {sipName_CompareLessEqual, static_cast<int>( ::QOpenGLTexture::CompareLessEqual), 154},
    {sipName_CompareNever, static_cast<int>( ::QOpenGLTexture::CompareNever), 154},
    {sipName_CompareNone, static_cast<int>( ::QOpenGLTexture::CompareNone), 155},
    {sipName_CompareRefToTexture, static_cast<int>( ::QOpenGLTexture::CompareRefToTexture), 155},
    {sipName_CubeMapNegativeX, static_cast<int>( ::QOpenGLTexture::CubeMapNegativeX), 157},
    {sipName_CubeMapNegativeY, static_cast<int>( ::QOpenGLTexture::CubeMapNegativeY), 157},
    {sipName_CubeMapNegativeZ, static_cast<int>( ::QOpenGLTexture::CubeMapNegativeZ), 157},
    {sipName_CubeMapPositiveX, static_cast<int>( ::QOpenGLTexture::CubeMapPositiveX), 157},
    {sipName_CubeMapPositiveY, static_cast<int>( ::QOpenGLTexture::CubeMapPositiveY), 157},
    {sipName_CubeMapPositiveZ, static_cast<int>( ::QOpenGLTexture::CubeMapPositiveZ), 157},
    {sipName_D16, static_cast<int>( ::QOpenGLTexture::D16), 168},
    {sipName_D24, static_cast<int>( ::QOpenGLTexture::D24), 168},
    {sipName_D24S8, static_cast<int>( ::QOpenGLTexture::D24S8), 168},
    {sipName_D32, static_cast<int>( ::QOpenGLTexture::D32), 168},
    {sipName_D32F, static_cast<int>( ::QOpenGLTexture::D32F), 168},
    {sipName_D32FS8X24, static_cast<int>( ::QOpenGLTexture::D32FS8X24), 168},
    {sipName_Depth, static_cast<int>( ::QOpenGLTexture::Depth), 163},
    {sipName_DepthFormat, static_cast<int>( ::QOpenGLTexture::DepthFormat), 168},
    {sipName_DepthMode, static_cast<int>( ::QOpenGLTexture::DepthMode), 158},
    {sipName_DepthStencil, static_cast<int>( ::QOpenGLTexture::DepthStencil), 163},
    {sipName_DirectionR, static_cast<int>( ::QOpenGLTexture::DirectionR), 156},
    {sipName_DirectionS, static_cast<int>( ::QOpenGLTexture::DirectionS), 156},
    {sipName_DirectionT, static_cast<int>( ::QOpenGLTexture::DirectionT), 156},
    {sipName_DontGenerateMipMaps, static_cast<int>( ::QOpenGLTexture::DontGenerateMipMaps), 162},
    {sipName_DontResetTextureUnit, static_cast<int>( ::QOpenGLTexture::DontResetTextureUnit), 169},
    {sipName_Float16, static_cast<int>( ::QOpenGLTexture::Float16), 164},
    {sipName_Float16OES, static_cast<int>( ::QOpenGLTexture::Float16OES), 164},
    {sipName_Float32, static_cast<int>( ::QOpenGLTexture::Float32), 164},
    {sipName_Float32_D32_UInt32_S8_X24, static_cast<int>( ::QOpenGLTexture::Float32_D32_UInt32_S8_X24), 164},
    {sipName_GenerateMipMaps, static_cast<int>( ::QOpenGLTexture::GenerateMipMaps), 162},
    {sipName_GreenValue, static_cast<int>( ::QOpenGLTexture::GreenValue), 166},
    {sipName_ImmutableMultisampleStorage, static_cast<int>( ::QOpenGLTexture::ImmutableMultisampleStorage), 159},
    {sipName_ImmutableStorage, static_cast<int>( ::QOpenGLTexture::ImmutableStorage), 159},
    {sipName_Int16, static_cast<int>( ::QOpenGLTexture::Int16), 164},
    {sipName_Int32, static_cast<int>( ::QOpenGLTexture::Int32), 164},
    {sipName_Int8, static_cast<int>( ::QOpenGLTexture::Int8), 164},
    {sipName_Linear, static_cast<int>( ::QOpenGLTexture::Linear), 161},
    {sipName_LinearMipMapLinear, static_cast<int>( ::QOpenGLTexture::LinearMipMapLinear), 161},
    {sipName_LinearMipMapNearest, static_cast<int>( ::QOpenGLTexture::LinearMipMapNearest), 161},
    {sipName_Luminance, static_cast<int>( ::QOpenGLTexture::Luminance), 163},
    {sipName_LuminanceAlpha, static_cast<int>( ::QOpenGLTexture::LuminanceAlpha), 163},
    {sipName_LuminanceAlphaFormat, static_cast<int>( ::QOpenGLTexture::LuminanceAlphaFormat), 168},
    {sipName_LuminanceFormat, static_cast<int>( ::QOpenGLTexture::LuminanceFormat), 168},
    {sipName_MirroredRepeat, static_cast<int>( ::QOpenGLTexture::MirroredRepeat), 170},
    {sipName_NPOTTextureRepeat, static_cast<int>( ::QOpenGLTexture::NPOTTextureRepeat), 159},
    {sipName_NPOTTextures, static_cast<int>( ::QOpenGLTexture::NPOTTextures), 159},
    {sipName_Nearest, static_cast<int>( ::QOpenGLTexture::Nearest), 161},
    {sipName_NearestMipMapLinear, static_cast<int>( ::QOpenGLTexture::NearestMipMapLinear), 161},
    {sipName_NearestMipMapNearest, static_cast<int>( ::QOpenGLTexture::NearestMipMapNearest), 161},
    {sipName_NoFormat, static_cast<int>( ::QOpenGLTexture::NoFormat), 168},
    {sipName_NoPixelType, static_cast<int>( ::QOpenGLTexture::NoPixelType), 164},
    {sipName_NoSourceFormat, static_cast<int>( ::QOpenGLTexture::NoSourceFormat), 163},
    {sipName_OneValue, static_cast<int>( ::QOpenGLTexture::OneValue), 166},
    {sipName_R11_EAC_SNorm, static_cast<int>( ::QOpenGLTexture::R11_EAC_SNorm), 168},
    {sipName_R11_EAC_UNorm, static_cast<int>( ::QOpenGLTexture::R11_EAC_UNorm), 168},
    {sipName_R16F, static_cast<int>( ::QOpenGLTexture::R16F), 168},
    {sipName_R16I, static_cast<int>( ::QOpenGLTexture::R16I), 168},
    {sipName_R16U, static_cast<int>( ::QOpenGLTexture::R16U), 168},
    {sipName_R16_SNorm, static_cast<int>( ::QOpenGLTexture::R16_SNorm), 168},
    {sipName_R16_UNorm, static_cast<int>( ::QOpenGLTexture::R16_UNorm), 168},
    {sipName_R32F, static_cast<int>( ::QOpenGLTexture::R32F), 168},
    {sipName_R32I, static_cast<int>( ::QOpenGLTexture::R32I), 168},
    {sipName_R32U, static_cast<int>( ::QOpenGLTexture::R32U), 168},
    {sipName_R5G6B5, static_cast<int>( ::QOpenGLTexture::R5G6B5), 168},
    {sipName_R8I, static_cast<int>( ::QOpenGLTexture::R8I), 168},
    {sipName_R8U, static_cast<int>( ::QOpenGLTexture::R8U), 168},
    {sipName_R8_SNorm, static_cast<int>( ::QOpenGLTexture::R8_SNorm), 168},
    {sipName_R8_UNorm, static_cast<int>( ::QOpenGLTexture::R8_UNorm), 168},
    {sipName_RG, static_cast<int>( ::QOpenGLTexture::RG), 163},
    {sipName_RG11B10F, static_cast<int>( ::QOpenGLTexture::RG11B10F), 168},
    {sipName_RG11_EAC_SNorm, static_cast<int>( ::QOpenGLTexture::RG11_EAC_SNorm), 168},
    {sipName_RG11_EAC_UNorm, static_cast<int>( ::QOpenGLTexture::RG11_EAC_UNorm), 168},
    {sipName_RG16F, static_cast<int>( ::QOpenGLTexture::RG16F), 168},
    {sipName_RG16I, static_cast<int>( ::QOpenGLTexture::RG16I), 168},
    {sipName_RG16U, static_cast<int>( ::QOpenGLTexture::RG16U), 168},
    {sipName_RG16_SNorm, static_cast<int>( ::QOpenGLTexture::RG16_SNorm), 168},
    {sipName_RG16_UNorm, static_cast<int>( ::QOpenGLTexture::RG16_UNorm), 168},
    {sipName_RG32F, static_cast<int>( ::QOpenGLTexture::RG32F), 168},
    {sipName_RG32I, static_cast<int>( ::QOpenGLTexture::RG32I), 168},
    {sipName_RG32U, static_cast<int>( ::QOpenGLTexture::RG32U), 168},
    {sipName_RG3B2, static_cast<int>( ::QOpenGLTexture::RG3B2), 168},
    {sipName_RG8I, static_cast<int>( ::QOpenGLTexture::RG8I), 168},
    {sipName_RG8U, static_cast<int>( ::QOpenGLTexture::RG8U), 168},
    {sipName_RG8_SNorm, static_cast<int>( ::QOpenGLTexture::RG8_SNorm), 168},
    {sipName_RG8_UNorm, static_cast<int>( ::QOpenGLTexture::RG8_UNorm), 168},
    {sipName_RGB, static_cast<int>( ::QOpenGLTexture::RGB), 163},
    {sipName_RGB10A2, static_cast<int>( ::QOpenGLTexture::RGB10A2), 168},
    {sipName_RGB16F, static_cast<int>( ::QOpenGLTexture::RGB16F), 168},
    {sipName_RGB16I, static_cast<int>( ::QOpenGLTexture::RGB16I), 168},
    {sipName_RGB16U, static_cast<int>( ::QOpenGLTexture::RGB16U), 168},
    {sipName_RGB16_SNorm, static_cast<int>( ::QOpenGLTexture::RGB16_SNorm), 168},
    {sipName_RGB16_UNorm, static_cast<int>( ::QOpenGLTexture::RGB16_UNorm), 168},
    {sipName_RGB32F, static_cast<int>( ::QOpenGLTexture::RGB32F), 168},
    {sipName_RGB32I, static_cast<int>( ::QOpenGLTexture::RGB32I), 168},
    {sipName_RGB32U, static_cast<int>( ::QOpenGLTexture::RGB32U), 168},
    {sipName_RGB5A1, static_cast<int>( ::QOpenGLTexture::RGB5A1), 168},
    {sipName_RGB8I, static_cast<int>( ::QOpenGLTexture::RGB8I), 168},
    {sipName_RGB8U, static_cast<int>( ::QOpenGLTexture::RGB8U), 168},
    {sipName_RGB8_ETC1, static_cast<int>( ::QOpenGLTexture::RGB8_ETC1), 168},
    {sipName_RGB8_ETC2, static_cast<int>( ::QOpenGLTexture::RGB8_ETC2), 168},
    {sipName_RGB8_PunchThrough_Alpha1_ETC2, static_cast<int>( ::QOpenGLTexture::RGB8_PunchThrough_Alpha1_ETC2), 168},
    {sipName_RGB8_SNorm, static_cast<int>( ::QOpenGLTexture::RGB8_SNorm), 168},
    {sipName_RGB8_UNorm, static_cast<int>( ::QOpenGLTexture::RGB8_UNorm), 168},
    {sipName_RGB9E5, static_cast<int>( ::QOpenGLTexture::RGB9E5), 168},
    {sipName_RGBA, static_cast<int>( ::QOpenGLTexture::RGBA), 163},
    {sipName_RGBA16F, static_cast<int>( ::QOpenGLTexture::RGBA16F), 168},
    {sipName_RGBA16I, static_cast<int>( ::QOpenGLTexture::RGBA16I), 168},
    {sipName_RGBA16U, static_cast<int>( ::QOpenGLTexture::RGBA16U), 168},
    {sipName_RGBA16_SNorm, static_cast<int>( ::QOpenGLTexture::RGBA16_SNorm), 168},
    {sipName_RGBA16_UNorm, static_cast<int>( ::QOpenGLTexture::RGBA16_UNorm), 168},
    {sipName_RGBA32F, static_cast<int>( ::QOpenGLTexture::RGBA32F), 168},
    {sipName_RGBA32I, static_cast<int>( ::QOpenGLTexture::RGBA32I), 168},
    {sipName_RGBA32U, static_cast<int>( ::QOpenGLTexture::RGBA32U), 168},
    {sipName_RGBA4, static_cast<int>( ::QOpenGLTexture::RGBA4), 168},
    {sipName_RGBA8I, static_cast<int>( ::QOpenGLTexture::RGBA8I), 168},
    {sipName_RGBA8U, static_cast<int>( ::QOpenGLTexture::RGBA8U), 168},
    {sipName_RGBA8_ETC2_EAC, static_cast<int>( ::QOpenGLTexture::RGBA8_ETC2_EAC), 168},
    {sipName_RGBA8_SNorm, static_cast<int>( ::QOpenGLTexture::RGBA8_SNorm), 168},
    {sipName_RGBA8_UNorm, static_cast<int>( ::QOpenGLTexture::RGBA8_UNorm), 168},
    {sipName_RGBAFormat, static_cast<int>( ::QOpenGLTexture::RGBAFormat), 168},
    {sipName_RGBA_ASTC_10x10, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_10x10), 168},
    {sipName_RGBA_ASTC_10x5, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_10x5), 168},
    {sipName_RGBA_ASTC_10x6, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_10x6), 168},
    {sipName_RGBA_ASTC_10x8, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_10x8), 168},
    {sipName_RGBA_ASTC_12x10, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_12x10), 168},
    {sipName_RGBA_ASTC_12x12, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_12x12), 168},
    {sipName_RGBA_ASTC_4x4, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_4x4), 168},
    {sipName_RGBA_ASTC_5x4, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_5x4), 168},
    {sipName_RGBA_ASTC_5x5, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_5x5), 168},
    {sipName_RGBA_ASTC_6x5, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_6x5), 168},
    {sipName_RGBA_ASTC_6x6, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_6x6), 168},
    {sipName_RGBA_ASTC_8x5, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_8x5), 168},
    {sipName_RGBA_ASTC_8x6, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_8x6), 168},
    {sipName_RGBA_ASTC_8x8, static_cast<int>( ::QOpenGLTexture::RGBA_ASTC_8x8), 168},
    {sipName_RGBA_DXT1, static_cast<int>( ::QOpenGLTexture::RGBA_DXT1), 168},
    {sipName_RGBA_DXT3, static_cast<int>( ::QOpenGLTexture::RGBA_DXT3), 168},
    {sipName_RGBA_DXT5, static_cast<int>( ::QOpenGLTexture::RGBA_DXT5), 168},
    {sipName_RGBA_Integer, static_cast<int>( ::QOpenGLTexture::RGBA_Integer), 163},
    {sipName_RGBFormat, static_cast<int>( ::QOpenGLTexture::RGBFormat), 168},
    {sipName_RGB_BP_SIGNED_FLOAT, static_cast<int>( ::QOpenGLTexture::RGB_BP_SIGNED_FLOAT), 168},
    {sipName_RGB_BP_UNSIGNED_FLOAT, static_cast<int>( ::QOpenGLTexture::RGB_BP_UNSIGNED_FLOAT), 168},
    {sipName_RGB_BP_UNorm, static_cast<int>( ::QOpenGLTexture::RGB_BP_UNorm), 168},
    {sipName_RGB_DXT1, static_cast<int>( ::QOpenGLTexture::RGB_DXT1), 168},
    {sipName_RGB_Integer, static_cast<int>( ::QOpenGLTexture::RGB_Integer), 163},
    {sipName_RG_ATI2N_SNorm, static_cast<int>( ::QOpenGLTexture::RG_ATI2N_SNorm), 168},
    {sipName_RG_ATI2N_UNorm, static_cast<int>( ::QOpenGLTexture::RG_ATI2N_UNorm), 168},
    {sipName_RG_Integer, static_cast<int>( ::QOpenGLTexture::RG_Integer), 163},
    {sipName_R_ATI1N_SNorm, static_cast<int>( ::QOpenGLTexture::R_ATI1N_SNorm), 168},
    {sipName_R_ATI1N_UNorm, static_cast<int>( ::QOpenGLTexture::R_ATI1N_UNorm), 168},
    {sipName_Red, static_cast<int>( ::QOpenGLTexture::Red), 163},
    {sipName_RedValue, static_cast<int>( ::QOpenGLTexture::RedValue), 166},
    {sipName_Red_Integer, static_cast<int>( ::QOpenGLTexture::Red_Integer), 163},
    {sipName_Repeat, static_cast<int>( ::QOpenGLTexture::Repeat), 170},
    {sipName_ResetTextureUnit, static_cast<int>( ::QOpenGLTexture::ResetTextureUnit), 169},
    {sipName_S8, static_cast<int>( ::QOpenGLTexture::S8), 168},
    {sipName_SRGB8, static_cast<int>( ::QOpenGLTexture::SRGB8), 168},
    {sipName_SRGB8_Alpha8, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8), 168},
    {sipName_SRGB8_Alpha8_ASTC_10x10, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_10x10), 168},
    {sipName_SRGB8_Alpha8_ASTC_10x5, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_10x5), 168},
    {sipName_SRGB8_Alpha8_ASTC_10x6, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_10x6), 168},
    {sipName_SRGB8_Alpha8_ASTC_10x8, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_10x8), 168},
    {sipName_SRGB8_Alpha8_ASTC_12x10, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_12x10), 168},
    {sipName_SRGB8_Alpha8_ASTC_12x12, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_12x12), 168},
    {sipName_SRGB8_Alpha8_ASTC_4x4, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_4x4), 168},
    {sipName_SRGB8_Alpha8_ASTC_5x4, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_5x4), 168},
    {sipName_SRGB8_Alpha8_ASTC_5x5, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_5x5), 168},
    {sipName_SRGB8_Alpha8_ASTC_6x5, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_6x5), 168},
    {sipName_SRGB8_Alpha8_ASTC_6x6, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_6x6), 168},
    {sipName_SRGB8_Alpha8_ASTC_8x5, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_8x5), 168},
    {sipName_SRGB8_Alpha8_ASTC_8x6, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_8x6), 168},
    {sipName_SRGB8_Alpha8_ASTC_8x8, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ASTC_8x8), 168},
    {sipName_SRGB8_Alpha8_ETC2_EAC, static_cast<int>( ::QOpenGLTexture::SRGB8_Alpha8_ETC2_EAC), 168},
    {sipName_SRGB8_ETC2, static_cast<int>( ::QOpenGLTexture::SRGB8_ETC2), 168},
    {sipName_SRGB8_PunchThrough_Alpha1_ETC2, static_cast<int>( ::QOpenGLTexture::SRGB8_PunchThrough_Alpha1_ETC2), 168},
    {sipName_SRGB_Alpha_DXT1, static_cast<int>( ::QOpenGLTexture::SRGB_Alpha_DXT1), 168},
    {sipName_SRGB_Alpha_DXT3, static_cast<int>( ::QOpenGLTexture::SRGB_Alpha_DXT3), 168},
    {sipName_SRGB_Alpha_DXT5, static_cast<int>( ::QOpenGLTexture::SRGB_Alpha_DXT5), 168},
    {sipName_SRGB_BP_UNorm, static_cast<int>( ::QOpenGLTexture::SRGB_BP_UNorm), 168},
    {sipName_SRGB_DXT1, static_cast<int>( ::QOpenGLTexture::SRGB_DXT1), 168},
    {sipName_Stencil, static_cast<int>( ::QOpenGLTexture::Stencil), 163},
    {sipName_StencilMode, static_cast<int>( ::QOpenGLTexture::StencilMode), 158},
    {sipName_StencilTexturing, static_cast<int>( ::QOpenGLTexture::StencilTexturing), 159},
    {sipName_Swizzle, static_cast<int>( ::QOpenGLTexture::Swizzle), 159},
    {sipName_SwizzleAlpha, static_cast<int>( ::QOpenGLTexture::SwizzleAlpha), 165},
    {sipName_SwizzleBlue, static_cast<int>( ::QOpenGLTexture::SwizzleBlue), 165},
    {sipName_SwizzleGreen, static_cast<int>( ::QOpenGLTexture::SwizzleGreen), 165},
    {sipName_SwizzleRed, static_cast<int>( ::QOpenGLTexture::SwizzleRed), 165},
    {sipName_Target1D, static_cast<int>( ::QOpenGLTexture::Target1D), 167},
    {sipName_Target1DArray, static_cast<int>( ::QOpenGLTexture::Target1DArray), 167},
    {sipName_Target2D, static_cast<int>( ::QOpenGLTexture::Target2D), 167},
    {sipName_Target2DArray, static_cast<int>( ::QOpenGLTexture::Target2DArray), 167},
    {sipName_Target2DMultisample, static_cast<int>( ::QOpenGLTexture::Target2DMultisample), 167},
    {sipName_Target2DMultisampleArray, static_cast<int>( ::QOpenGLTexture::Target2DMultisampleArray), 167},
    {sipName_Target3D, static_cast<int>( ::QOpenGLTexture::Target3D), 167},
    {sipName_TargetBuffer, static_cast<int>( ::QOpenGLTexture::TargetBuffer), 167},
    {sipName_TargetCubeMap, static_cast<int>( ::QOpenGLTexture::TargetCubeMap), 167},
    {sipName_TargetCubeMapArray, static_cast<int>( ::QOpenGLTexture::TargetCubeMapArray), 167},
    {sipName_TargetRectangle, static_cast<int>( ::QOpenGLTexture::TargetRectangle), 167},
    {sipName_Texture1D, static_cast<int>( ::QOpenGLTexture::Texture1D), 159},
    {sipName_Texture3D, static_cast<int>( ::QOpenGLTexture::Texture3D), 159},
    {sipName_TextureArrays, static_cast<int>( ::QOpenGLTexture::TextureArrays), 159},
    {sipName_TextureBuffer, static_cast<int>( ::QOpenGLTexture::TextureBuffer), 159},
    {sipName_TextureComparisonOperators, static_cast<int>( ::QOpenGLTexture::TextureComparisonOperators), 159},
    {sipName_TextureCubeMapArrays, static_cast<int>( ::QOpenGLTexture::TextureCubeMapArrays), 159},
    {sipName_TextureMipMapLevel, static_cast<int>( ::QOpenGLTexture::TextureMipMapLevel), 159},
    {sipName_TextureMultisample, static_cast<int>( ::QOpenGLTexture::TextureMultisample), 159},
    {sipName_TextureRectangle, static_cast<int>( ::QOpenGLTexture::TextureRectangle), 159},
    {sipName_UInt16, static_cast<int>( ::QOpenGLTexture::UInt16), 164},
    {sipName_UInt16_R5G6B5, static_cast<int>( ::QOpenGLTexture::UInt16_R5G6B5), 164},
    {sipName_UInt16_R5G6B5_Rev, static_cast<int>( ::QOpenGLTexture::UInt16_R5G6B5_Rev), 164},
    {sipName_UInt16_RGB5A1, static_cast<int>( ::QOpenGLTexture::UInt16_RGB5A1), 164},
    {sipName_UInt16_RGB5A1_Rev, static_cast<int>( ::QOpenGLTexture::UInt16_RGB5A1_Rev), 164},
    {sipName_UInt16_RGBA4, static_cast<int>( ::QOpenGLTexture::UInt16_RGBA4), 164},
    {sipName_UInt16_RGBA4_Rev, static_cast<int>( ::QOpenGLTexture::UInt16_RGBA4_Rev), 164},
    {sipName_UInt32, static_cast<int>( ::QOpenGLTexture::UInt32), 164},
    {sipName_UInt32_D24S8, static_cast<int>( ::QOpenGLTexture::UInt32_D24S8), 164},
    {sipName_UInt32_RG11B10F, static_cast<int>( ::QOpenGLTexture::UInt32_RG11B10F), 164},
    {sipName_UInt32_RGB10A2, static_cast<int>( ::QOpenGLTexture::UInt32_RGB10A2), 164},
    {sipName_UInt32_RGB10A2_Rev, static_cast<int>( ::QOpenGLTexture::UInt32_RGB10A2_Rev), 164},
    {sipName_UInt32_RGB9_E5, static_cast<int>( ::QOpenGLTexture::UInt32_RGB9_E5), 164},
    {sipName_UInt32_RGBA8, static_cast<int>( ::QOpenGLTexture::UInt32_RGBA8), 164},
    {sipName_UInt32_RGBA8_Rev, static_cast<int>( ::QOpenGLTexture::UInt32_RGBA8_Rev), 164},
    {sipName_UInt8, static_cast<int>( ::QOpenGLTexture::UInt8), 164},
    {sipName_UInt8_RG3B2, static_cast<int>( ::QOpenGLTexture::UInt8_RG3B2), 164},
    {sipName_UInt8_RG3B2_Rev, static_cast<int>( ::QOpenGLTexture::UInt8_RG3B2_Rev), 164},
    {sipName_ZeroValue, static_cast<int>( ::QOpenGLTexture::ZeroValue), 166},
};

PyDoc_STRVAR(doc_QOpenGLTexture, "\1QOpenGLTexture(QOpenGLTexture.Target)\n"
    "QOpenGLTexture(QImage, genMipMaps: QOpenGLTexture.MipMapGeneration = QOpenGLTexture.GenerateMipMaps)");


static pyqt5ClassPluginDef plugin_QOpenGLTexture = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLTexture = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTexture,
        {0},
        &plugin_QOpenGLTexture
    },
    {
        sipNameNr_QOpenGLTexture,
        {0, 0, 1},
        69, methods_QOpenGLTexture,
        254, enummembers_QOpenGLTexture,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLTexture,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 76 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 121373 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 121377 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 121380 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 121383 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 121386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 133 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 121389 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 121392 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 121395 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 121398 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 121401 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 121404 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 121407 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 121410 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 121413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 121416 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 1073 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 121419 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 927 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 121422 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 781 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 121425 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 632 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 121428 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 121431 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 331 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 121434 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 179 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 121437 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 121440 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 121443 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 121446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 121449 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 121452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 121455 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 121458 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 121461 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 121464 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 121467 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 121470 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 121473 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 121476 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 121479 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 121482 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 121485 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 121488 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 121491 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool link();
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQOpenGLShaderProgram::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLShaderProgram);

    return  ::QOpenGLShaderProgram::metaObject();
}

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));
}

bool sipQOpenGLShaderProgram::link()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_link);

    if (!sipMeth)
        return  ::QOpenGLShaderProgram::link();

    extern bool sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_28(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQOpenGLShaderProgram::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QOpenGLShaderProgram::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQOpenGLShaderProgram::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QOpenGLShaderProgram::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLShaderProgram::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QOpenGLShaderProgram::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLShaderProgram::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QOpenGLShaderProgram::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLShaderProgram::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QOpenGLShaderProgram::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLShaderProgram::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QOpenGLShaderProgram::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLShaderProgram::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QOpenGLShaderProgram::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 121801 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 121861 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "addShader(self, 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, "removeShader(self, 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, "shaders(self) -> object");

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, "addShaderFromSourceCode(self, Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], Union[QByteArray, bytes, bytearray]) -> bool\n"
    "addShaderFromSourceCode(self, Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], 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, "addShaderFromSourceFile(self, Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], 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, "removeAllShaders(self)");

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, "link(self) -> 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 || sipIsDerivedClass((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, "isLinked(self) -> 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, "log(self) -> 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, "bind(self) -> 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, "release(self)");

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, "programId(self) -> 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, "bindAttributeLocation(self, Union[QByteArray, bytes, bytearray], int)\n"
    "bindAttributeLocation(self, 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, "attributeLocation(self, Union[QByteArray, bytes, bytearray]) -> int\n"
    "attributeLocation(self, 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, "setAttributeValue(self, int, float)\n"
    "setAttributeValue(self, int, float, float)\n"
    "setAttributeValue(self, int, float, float, float)\n"
    "setAttributeValue(self, int, float, float, float, float)\n"
    "setAttributeValue(self, int, QVector2D)\n"
    "setAttributeValue(self, int, QVector3D)\n"
    "setAttributeValue(self, int, QVector4D)\n"
    "setAttributeValue(self, int, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "setAttributeValue(self, str, float)\n"
    "setAttributeValue(self, str, float, float)\n"
    "setAttributeValue(self, str, float, float, float)\n"
    "setAttributeValue(self, str, float, float, float, float)\n"
    "setAttributeValue(self, str, QVector2D)\n"
    "setAttributeValue(self, str, QVector3D)\n"
    "setAttributeValue(self, str, QVector4D)\n"
    "setAttributeValue(self, str, Union[QColor, Qt.GlobalColor, QGradient])");

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;
         ::GLfloat a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bsf", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipCpp->setAttributeValue(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
         ::GLfloat a1;
         ::GLfloat a2;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bsff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setAttributeValue(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
         ::GLfloat a1;
         ::GLfloat a2;
         ::GLfloat a3;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bsfff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setAttributeValue(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
         ::GLfloat a1;
         ::GLfloat a2;
         ::GLfloat a3;
         ::GLfloat a4;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bsffff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setAttributeValue(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QVector2D* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector2D, &a1))
        {
            sipCpp->setAttributeValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QVector3D* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector3D, &a1))
        {
            sipCpp->setAttributeValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QVector4D* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector4D, &a1))
        {
            sipCpp->setAttributeValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QColor* a1;
        int a1State = 0;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1", &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;
        }
    }

    /* 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, "setAttributeArray(self, int, PYQT_SHADER_ATTRIBUTE_ARRAY)\n"
    "setAttributeArray(self, str, PYQT_SHADER_ATTRIBUTE_ARRAY)");

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 117 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 122864 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 * a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsP0", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 129 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 122897 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            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, "setAttributeBuffer(self, int, int, int, int, stride: int = 0)\n"
    "setAttributeBuffer(self, str, int, int, int, stride: int = 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;
         ::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, "Bsuii|i", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setAttributeBuffer(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_QOpenGLShaderProgram, sipName_setAttributeBuffer, doc_QOpenGLShaderProgram_setAttributeBuffer);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_enableAttributeArray, "enableAttributeArray(self, int)\n"
    "enableAttributeArray(self, 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;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bs", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0))
        {
            sipCpp->enableAttributeArray(a0);

            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, "disableAttributeArray(self, int)\n"
    "disableAttributeArray(self, 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;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bs", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0))
        {
            sipCpp->disableAttributeArray(a0);

            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, "uniformLocation(self, Union[QByteArray, bytes, bytearray]) -> int\n"
    "uniformLocation(self, 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, "setUniformValue(self, int, int)\n"
    "setUniformValue(self, int, float)\n"
    "setUniformValue(self, int, float, float)\n"
    "setUniformValue(self, int, float, float, float)\n"
    "setUniformValue(self, int, float, float, float, float)\n"
    "setUniformValue(self, int, QVector2D)\n"
    "setUniformValue(self, int, QVector3D)\n"
    "setUniformValue(self, int, QVector4D)\n"
    "setUniformValue(self, int, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "setUniformValue(self, int, QPoint)\n"
    "setUniformValue(self, int, Union[QPointF, QPoint])\n"
    "setUniformValue(self, int, QSize)\n"
    "setUniformValue(self, int, QSizeF)\n"
    "setUniformValue(self, int, QMatrix2x2)\n"
    "setUniformValue(self, int, QMatrix2x3)\n"
    "setUniformValue(self, int, QMatrix2x4)\n"
    "setUniformValue(self, int, QMatrix3x2)\n"
    "setUniformValue(self, int, QMatrix3x3)\n"
    "setUniformValue(self, int, QMatrix3x4)\n"
    "setUniformValue(self, int, QMatrix4x2)\n"
    "setUniformValue(self, int, QMatrix4x3)\n"
    "setUniformValue(self, int, QMatrix4x4)\n"
    "setUniformValue(self, int, QTransform)\n"
    "setUniformValue(self, str, int)\n"
    "setUniformValue(self, str, float)\n"
    "setUniformValue(self, str, float, float)\n"
    "setUniformValue(self, str, float, float, float)\n"
    "setUniformValue(self, str, float, float, float, float)\n"
    "setUniformValue(self, str, QVector2D)\n"
    "setUniformValue(self, str, QVector3D)\n"
    "setUniformValue(self, str, QVector4D)\n"
    "setUniformValue(self, str, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "setUniformValue(self, str, QPoint)\n"
    "setUniformValue(self, str, Union[QPointF, QPoint])\n"
    "setUniformValue(self, str, QSize)\n"
    "setUniformValue(self, str, QSizeF)\n"
    "setUniformValue(self, str, QMatrix2x2)\n"
    "setUniformValue(self, str, QMatrix2x3)\n"
    "setUniformValue(self, str, QMatrix2x4)\n"
    "setUniformValue(self, str, QMatrix3x2)\n"
    "setUniformValue(self, str, QMatrix3x3)\n"
    "setUniformValue(self, str, QMatrix3x4)\n"
    "setUniformValue(self, str, QMatrix4x2)\n"
    "setUniformValue(self, str, QMatrix4x3)\n"
    "setUniformValue(self, str, QMatrix4x4)\n"
    "setUniformValue(self, 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;
         ::GLint a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsXi", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipCpp->setUniformValue(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
         ::GLfloat a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsXf", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipCpp->setUniformValue(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
         ::GLfloat a1;
         ::GLfloat a2;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bsff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setUniformValue(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
         ::GLfloat a1;
         ::GLfloat a2;
         ::GLfloat a3;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bsfff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setUniformValue(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
         ::GLfloat a1;
         ::GLfloat a2;
         ::GLfloat a3;
         ::GLfloat a4;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bsffff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setUniformValue(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QVector2D* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector2D, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QVector3D* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector3D, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QVector4D* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector4D, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QColor* a1;
        int a1State = 0;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1", &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;
        }
    }

    {
        const char* a0;
        const  ::QPoint* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QPoint, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QPointF* a1;
        int a1State = 0;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1", &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;
        }
    }

    {
        const char* a0;
        const  ::QSize* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QSize, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QSizeF* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QSizeF, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QMatrix2x2* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix2x2, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QMatrix2x3* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix2x3, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QMatrix2x4* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix2x4, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QMatrix3x2* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix3x2, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QMatrix3x3* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix3x3, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QMatrix3x4* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix3x4, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QMatrix4x2* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix4x2, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QMatrix4x3* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix4x3, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QMatrix4x4* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix4x4, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        const  ::QTransform* a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QTransform, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            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, "setUniformValueArray(self, int, PYQT_SHADER_UNIFORM_VALUE_ARRAY)\n"
    "setUniformValueArray(self, str, PYQT_SHADER_UNIFORM_VALUE_ARRAY)");

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 195 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 123959 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 * a1;
         ::QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BsP0", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 248 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 124033 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            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, "hasOpenGLShaderPrograms(context: QOpenGLContext = 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, "maxGeometryOutputVertices(self) -> 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, "setPatchVertexCount(self, 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, "patchVertexCount(self) -> 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, "setDefaultOuterTessellationLevels(self, Iterable[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, "defaultOuterTessellationLevels(self) -> List[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, "setDefaultInnerTessellationLevels(self, Iterable[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, "defaultInnerTessellationLevels(self) -> List[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, "create(self) -> 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;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_addCacheableShaderFromSourceCode, "addCacheableShaderFromSourceCode(self, Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], Union[QByteArray, bytes, bytearray]) -> bool\n"
    "addCacheableShaderFromSourceCode(self, Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], str) -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_addCacheableShaderFromSourceCode(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_addCacheableShaderFromSourceCode(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->addCacheableShaderFromSourceCode(*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->addCacheableShaderFromSourceCode(*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_addCacheableShaderFromSourceCode, doc_QOpenGLShaderProgram_addCacheableShaderFromSourceCode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_addCacheableShaderFromSourceFile, "addCacheableShaderFromSourceFile(self, Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], str) -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_addCacheableShaderFromSourceFile(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_addCacheableShaderFromSourceFile(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->addCacheableShaderFromSourceFile(*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_addCacheableShaderFromSourceFile, doc_QOpenGLShaderProgram_addCacheableShaderFromSourceFile);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLShaderProgram(void *, const sipTypeDef *);}
static void *cast_QOpenGLShaderProgram(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLShaderProgram *sipCpp = reinterpret_cast< ::QOpenGLShaderProgram *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLShaderProgram *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLShaderProgram(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 0, 1}};


static PyMethodDef methods_QOpenGLShaderProgram[] = {
    {SIP_MLNAME_CAST(sipName_addCacheableShaderFromSourceCode), meth_QOpenGLShaderProgram_addCacheableShaderFromSourceCode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_addCacheableShaderFromSourceCode)},
    {SIP_MLNAME_CAST(sipName_addCacheableShaderFromSourceFile), meth_QOpenGLShaderProgram_addCacheableShaderFromSourceFile, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_addCacheableShaderFromSourceFile)},
    {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(parent: QObject = None)");


static pyqt5ClassPluginDef plugin_QOpenGLShaderProgram = {
    & ::QOpenGLShaderProgram::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLShaderProgram = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLShaderProgram,
        {0},
        &plugin_QOpenGLShaderProgram
    },
    {
        sipNameNr_QOpenGLShaderProgram,
        {0, 0, 1},
        42, 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
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 124581 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 124585 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QOpenGLShader_ShaderType___hash__(PyObject *);}
static long slot_QOpenGLShader_ShaderType___hash__(PyObject *sipSelf)
{
     ::QOpenGLShader::ShaderType *sipCpp = reinterpret_cast< ::QOpenGLShader::ShaderType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLShader_ShaderType));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QOpenGLShader::ShaderType::Int();
#line 124603 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLShader::ShaderType::Int() != 0);
#line 124628 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLShader::ShaderType::Int() != a0->operator QOpenGLShader::ShaderType::Int());
#line 124658 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLShader::ShaderType::Int() == a0->operator QOpenGLShader::ShaderType::Int());
#line 124694 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLShader::ShaderType(*sipCpp ^ a0);
#line 124733 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLShader_ShaderType___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLShader::ShaderType(*sipCpp | a0);
#line 124805 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLShader_ShaderType___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QOpenGLShader::ShaderType();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QOpenGLShader::ShaderType(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 125073 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLShader_ShaderType[] = {
    {(void *)slot_QOpenGLShader_ShaderType___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QOpenGLShader_ShaderType___xor__, xor_slot},
    {(void *)slot_QOpenGLShader_ShaderType___ior__, ior_slot},
    {(void *)slot_QOpenGLShader_ShaderType___or__, or_slot},
    {(void *)slot_QOpenGLShader_ShaderType___iand__, iand_slot},
    {(void *)slot_QOpenGLShader_ShaderType___and__, and_slot},
    {(void *)slot_QOpenGLShader_ShaderType___invert__, invert_slot},
    {(void *)slot_QOpenGLShader_ShaderType___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLShader_ShaderType, "\1QOpenGLShader.ShaderType()\n"
    "QOpenGLShader.ShaderType(Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit])\n"
    "QOpenGLShader.ShaderType(QOpenGLShader.ShaderType)");


static pyqt5ClassPluginDef plugin_QOpenGLShader_ShaderType = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLShader_ShaderType = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLShader__ShaderType,
        {0},
        &plugin_QOpenGLShader_ShaderType
    },
    {
        sipNameNr_ShaderType,
        {148, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLShader_ShaderType,
    -1,
    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,
    0,
    convertTo_QOpenGLShader_ShaderType,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 125159 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 125163 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 125166 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 125169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 125172 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 125175 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 125178 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 125181 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 125184 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 125187 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 125190 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 125193 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 125196 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 125199 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 125202 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 125205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 125208 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 125211 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 125214 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQOpenGLShader::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLShader);

    return  ::QOpenGLShader::metaObject();
}

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));
}

bool sipQOpenGLShader::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QOpenGLShader::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQOpenGLShader::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QOpenGLShader::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLShader::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QOpenGLShader::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLShader::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QOpenGLShader::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLShader::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QOpenGLShader::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLShader::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QOpenGLShader::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 125508 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 125568 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "shaderType(self) -> 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, "compileSourceCode(self, Union[QByteArray, bytes, bytearray]) -> bool\n"
    "compileSourceCode(self, 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, "compileSourceFile(self, 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, "sourceCode(self) -> 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, "isCompiled(self) -> 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, "log(self) -> 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, "shaderId(self) -> 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, "hasOpenGLShaders(Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], context: QOpenGLContext = 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 inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLShader(void *, const sipTypeDef *);}
static void *cast_QOpenGLShader(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLShader *sipCpp = reinterpret_cast< ::QOpenGLShader *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLShader *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLShader(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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), 150},
    {sipName_Fragment, static_cast<int>( ::QOpenGLShader::Fragment), 150},
    {sipName_Geometry, static_cast<int>( ::QOpenGLShader::Geometry), 150},
    {sipName_TessellationControl, static_cast<int>( ::QOpenGLShader::TessellationControl), 150},
    {sipName_TessellationEvaluation, static_cast<int>( ::QOpenGLShader::TessellationEvaluation), 150},
    {sipName_Vertex, static_cast<int>( ::QOpenGLShader::Vertex), 150},
};

PyDoc_STRVAR(doc_QOpenGLShader, "\1QOpenGLShader(Union[QOpenGLShader.ShaderType, QOpenGLShader.ShaderTypeBit], parent: QObject = None)");


static pyqt5ClassPluginDef plugin_QOpenGLShader = {
    & ::QOpenGLShader::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLShader = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLShader,
        {0},
        &plugin_QOpenGLShader
    },
    {
        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
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglpixeltransferoptions.sip"
#include <qopenglpixeltransferoptions.h>
#line 126212 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_swap, "swap(self, 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, "setAlignment(self, 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, "alignment(self) -> 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, "setSkipImages(self, 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, "skipImages(self) -> 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, "setSkipRows(self, 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, "skipRows(self) -> 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, "setSkipPixels(self, 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, "skipPixels(self) -> 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, "setImageHeight(self, 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, "imageHeight(self) -> 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, "setRowLength(self, 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, "rowLength(self) -> 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, "setLeastSignificantByteFirst(self, 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, "isLeastSignificantBitFirst(self) -> 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, "setSwapBytesEnabled(self, 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, "isSwapBytesEnabled(self) -> 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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QOpenGLPixelTransferOptions = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLPixelTransferOptions = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLPixelTransferOptions,
        {0},
        &plugin_QOpenGLPixelTransferOptions
    },
    {
        sipNameNr_QOpenGLPixelTransferOptions,
        {0, 0, 1},
        17, methods_QOpenGLPixelTransferOptions,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLPixelTransferOptions,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglpaintdevice.sip"
#include <qopenglpaintdevice.h>
#line 126844 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 126848 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 126851 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 126854 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 126857 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    void ensureActiveTarget();
     ::QPaintEngine* paintEngine() const;
    int metric( ::QPaintDevice::PaintDeviceMetric) 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()
{
    sipInstanceDestroyed(sipPySelf);
}

void sipQOpenGLPaintDevice::ensureActiveTarget()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_ensureActiveTarget);

    if (!sipMeth)
    {
         ::QOpenGLPaintDevice::ensureActiveTarget();
        return;
    }

    extern void sipVH_QtGui_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_QtGui_39(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QPaintEngine* sipQOpenGLPaintDevice::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return  ::QOpenGLPaintDevice::paintEngine();

    extern  ::QPaintEngine* sipVH_QtGui_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipQOpenGLPaintDevice::metric( ::QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return  ::QOpenGLPaintDevice::metric(a0);

    extern int sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipQOpenGLPaintDevice::sipProtectVirt_metric(bool sipSelfWasArg, ::QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ?  ::QOpenGLPaintDevice::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_paintEngine, "paintEngine(self) -> 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 || sipIsDerivedClass((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, "context(self) -> 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, "size(self) -> 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, "setSize(self, 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, "dotsPerMeterX(self) -> 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, "dotsPerMeterY(self) -> 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, "setDotsPerMeterX(self, 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, "setDotsPerMeterY(self, 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, "setPaintFlipped(self, 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, "paintFlipped(self) -> 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, "ensureActiveTarget(self)");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_ensureActiveTarget(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_ensureActiveTarget(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "setDevicePixelRatio(self, 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, "metric(self, 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 || sipIsDerivedClass((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 inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLPaintDevice(void *, const sipTypeDef *);}
static void *cast_QOpenGLPaintDevice(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLPaintDevice *sipCpp = reinterpret_cast< ::QOpenGLPaintDevice *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLPaintDevice *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLPaintDevice(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{191, 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)");


static pyqt5ClassPluginDef plugin_QOpenGLPaintDevice = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLPaintDevice = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLPaintDevice,
        {0},
        &plugin_QOpenGLPaintDevice
    },
    {
        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
};

#line 124 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 127503 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 127507 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_setSamples, "setSamples(self, 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, "samples(self) -> 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, "setMipmap(self, 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, "mipmap(self) -> 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, "setAttachment(self, 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, "attachment(self) -> 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, "setTextureTarget(self, 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, "textureTarget(self) -> 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, "setInternalTextureFormat(self, 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, "internalTextureFormat(self) -> 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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QOpenGLFramebufferObjectFormat = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLFramebufferObjectFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLFramebufferObjectFormat,
        {0},
        &plugin_QOpenGLFramebufferObjectFormat
    },
    {
        sipNameNr_QOpenGLFramebufferObjectFormat,
        {0, 0, 1},
        10, methods_QOpenGLFramebufferObjectFormat,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLFramebufferObjectFormat,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 128007 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 128011 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 124 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 128014 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 128017 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 128020 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 128023 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 128026 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 128034 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_format, "format(self) -> 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, "isValid(self) -> 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, "isBound(self) -> 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, "bind(self) -> 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, "release(self) -> 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, "width(self) -> 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, "height(self) -> 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, "texture(self) -> 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_textures, "textures(self) -> List[int]");

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

    {
        const  ::QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
             ::QVector<uint>*sipRes;

            sipRes = new  ::QVector<uint>(sipCpp->textures());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_textures, doc_QOpenGLFramebufferObject_textures);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_size, "size(self) -> 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, "toImage(self) -> QImage\n"
    "toImage(self, bool) -> QImage\n"
    "toImage(self, bool, int) -> 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);
        }
    }

    {
        bool a0;
        int a1;
        const  ::QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bbi", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp, &a0, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->toImage(a0,a1));

            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, "attachment(self) -> 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, "setAttachment(self, 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, "handle(self) -> 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, "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, "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, "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, "blitFramebuffer(QOpenGLFramebufferObject, QRect, QOpenGLFramebufferObject, QRect, buffers: int = GL_COLOR_BUFFER_BIT, filter: int = GL_NEAREST)\n"
    "blitFramebuffer(QOpenGLFramebufferObject, QOpenGLFramebufferObject, buffers: int = GL_COLOR_BUFFER_BIT, filter: int = GL_NEAREST)\n"
    "blitFramebuffer(QOpenGLFramebufferObject, QRect, QOpenGLFramebufferObject, QRect, int, int, int, int)\n"
    "blitFramebuffer(QOpenGLFramebufferObject, QRect, QOpenGLFramebufferObject, QRect, int, int, int, int, QOpenGLFramebufferObject.FramebufferRestorePolicy)");

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;
        }
    }

    {
         ::QOpenGLFramebufferObject* a0;
        const  ::QRect* a1;
         ::QOpenGLFramebufferObject* a2;
        const  ::QRect* a3;
         ::GLbitfield a4;
         ::GLenum a5;
        int a6;
        int a7;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "J8J9J8J9uuii", sipType_QOpenGLFramebufferObject, &a0, sipType_QRect, &a1, sipType_QOpenGLFramebufferObject, &a2, sipType_QRect, &a3, &a4, &a5, &a6, &a7))
        {
             ::QOpenGLFramebufferObject::blitFramebuffer(a0,*a1,a2,*a3,a4,a5,a6,a7);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
         ::QOpenGLFramebufferObject* a0;
        const  ::QRect* a1;
         ::QOpenGLFramebufferObject* a2;
        const  ::QRect* a3;
         ::GLbitfield a4;
         ::GLenum a5;
        int a6;
        int a7;
         ::QOpenGLFramebufferObject::FramebufferRestorePolicy a8;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "J8J9J8J9uuiiE", sipType_QOpenGLFramebufferObject, &a0, sipType_QRect, &a1, sipType_QOpenGLFramebufferObject, &a2, sipType_QRect, &a3, &a4, &a5, &a6, &a7, sipType_QOpenGLFramebufferObject_FramebufferRestorePolicy, &a8))
        {
             ::QOpenGLFramebufferObject::blitFramebuffer(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_QOpenGLFramebufferObject, sipName_blitFramebuffer, doc_QOpenGLFramebufferObject_blitFramebuffer);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_takeTexture, "takeTexture(self) -> int\n"
    "takeTexture(self, int) -> 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);
        }
    }

    {
        int a0;
         ::QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp, &a0))
        {
             ::GLuint sipRes;

            sipRes = sipCpp->takeTexture(a0);

            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;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_addColorAttachment, "addColorAttachment(self, QSize, internal_format: int = 0)\n"
    "addColorAttachment(self, int, int, internal_format: int = 0)");

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

    {
        const  ::QSize* a0;
         ::GLenum a1 = 0;
         ::QOpenGLFramebufferObject *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|u", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp, sipType_QSize, &a0, &a1))
        {
            sipCpp->addColorAttachment(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
         ::GLenum a2 = 0;
         ::QOpenGLFramebufferObject *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|u", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->addColorAttachment(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_addColorAttachment, doc_QOpenGLFramebufferObject_addColorAttachment);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_sizes, "sizes(self) -> object");

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

    {
        const  ::QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            QVector< ::QSize>*sipRes;

            sipRes = new QVector< ::QSize>(sipCpp->sizes());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_sizes, doc_QOpenGLFramebufferObject_sizes);

    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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLFramebufferObject *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLFramebufferObject(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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_addColorAttachment), (PyCFunction)meth_QOpenGLFramebufferObject_addColorAttachment, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_addColorAttachment)},
    {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_sizes), meth_QOpenGLFramebufferObject_sizes, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_sizes)},
    {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_textures), meth_QOpenGLFramebufferObject_textures, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_textures)},
    {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), 143},
    {sipName_Depth, static_cast<int>( ::QOpenGLFramebufferObject::Depth), 143},
    {sipName_DontRestoreFramebufferBinding, static_cast<int>( ::QOpenGLFramebufferObject::DontRestoreFramebufferBinding), 144},
    {sipName_NoAttachment, static_cast<int>( ::QOpenGLFramebufferObject::NoAttachment), 143},
    {sipName_RestoreFrameBufferBinding, static_cast<int>( ::QOpenGLFramebufferObject::RestoreFrameBufferBinding), 144},
    {sipName_RestoreFramebufferBindingToDefault, static_cast<int>( ::QOpenGLFramebufferObject::RestoreFramebufferBindingToDefault), 144},
};

PyDoc_STRVAR(doc_QOpenGLFramebufferObject, "\1QOpenGLFramebufferObject(QSize, target: int = GL_TEXTURE_2D)\n"
    "QOpenGLFramebufferObject(int, int, target: int = GL_TEXTURE_2D)\n"
    "QOpenGLFramebufferObject(QSize, QOpenGLFramebufferObject.Attachment, target: int = GL_TEXTURE_2D, internal_format: int = GL_RGBA8)\n"
    "QOpenGLFramebufferObject(int, int, QOpenGLFramebufferObject.Attachment, target: int = GL_TEXTURE_2D, internal_format: int = GL_RGBA8)\n"
    "QOpenGLFramebufferObject(QSize, QOpenGLFramebufferObjectFormat)\n"
    "QOpenGLFramebufferObject(int, int, QOpenGLFramebufferObjectFormat)");


static pyqt5ClassPluginDef plugin_QOpenGLFramebufferObject = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLFramebufferObject = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLFramebufferObject,
        {0},
        &plugin_QOpenGLFramebufferObject
    },
    {
        sipNameNr_QOpenGLFramebufferObject,
        {0, 0, 1},
        21, methods_QOpenGLFramebufferObject,
        6, enummembers_QOpenGLFramebufferObject,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLFramebufferObject,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 113 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 129077 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 129081 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 129084 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 129087 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 129090 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 129093 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 129096 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 129099 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 129102 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 129105 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 129108 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 129111 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 129114 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 129117 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 129120 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 129123 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 129126 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 129129 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 129132 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 129135 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 129138 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 129141 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 129144 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQOpenGLDebugLogger::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLDebugLogger);

    return  ::QOpenGLDebugLogger::metaObject();
}

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));
}

bool sipQOpenGLDebugLogger::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QOpenGLDebugLogger::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQOpenGLDebugLogger::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QOpenGLDebugLogger::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLDebugLogger::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QOpenGLDebugLogger::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLDebugLogger::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QOpenGLDebugLogger::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLDebugLogger::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QOpenGLDebugLogger::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLDebugLogger::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QOpenGLDebugLogger::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 129438 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 129498 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "initialize(self) -> 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, "isLogging(self) -> 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, "loggingMode(self) -> 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, "maximumMessageLength(self) -> 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, "pushGroup(self, str, id: int = 0, source: QOpenGLDebugMessage.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, "popGroup(self)");

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, "enableMessages(self, sources: Union[QOpenGLDebugMessage.Sources, QOpenGLDebugMessage.Source] = QOpenGLDebugMessage.AnySource, types: Union[QOpenGLDebugMessage.Types, QOpenGLDebugMessage.Type] = QOpenGLDebugMessage.AnyType, severities: Union[QOpenGLDebugMessage.Severities, QOpenGLDebugMessage.Severity] = QOpenGLDebugMessage.AnySeverity)\n"
    "enableMessages(self, Iterable[int], sources: Union[QOpenGLDebugMessage.Sources, QOpenGLDebugMessage.Source] = QOpenGLDebugMessage.AnySource, types: Union[QOpenGLDebugMessage.Types, QOpenGLDebugMessage.Type] = 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, "disableMessages(self, sources: Union[QOpenGLDebugMessage.Sources, QOpenGLDebugMessage.Source] = QOpenGLDebugMessage.AnySource, types: Union[QOpenGLDebugMessage.Types, QOpenGLDebugMessage.Type] = QOpenGLDebugMessage.AnyType, severities: Union[QOpenGLDebugMessage.Severities, QOpenGLDebugMessage.Severity] = QOpenGLDebugMessage.AnySeverity)\n"
    "disableMessages(self, Iterable[int], sources: Union[QOpenGLDebugMessage.Sources, QOpenGLDebugMessage.Source] = QOpenGLDebugMessage.AnySource, types: Union[QOpenGLDebugMessage.Types, QOpenGLDebugMessage.Type] = 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, "loggedMessages(self) -> object");

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, "logMessage(self, 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, "startLogging(self, loggingMode: QOpenGLDebugLogger.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, "stopLogging(self)");

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 inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLDebugLogger(void *, const sipTypeDef *);}
static void *cast_QOpenGLDebugLogger(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLDebugLogger *sipCpp = reinterpret_cast< ::QOpenGLDebugLogger *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLDebugLogger *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLDebugLogger(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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), 134},
    {sipName_SynchronousLogging, static_cast<int>( ::QOpenGLDebugLogger::SynchronousLogging), 134},
};

PyDoc_STRVAR(doc_QOpenGLDebugLogger, "\1QOpenGLDebugLogger(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QOpenGLDebugLogger[] = {
    {"messageLogged(QOpenGLDebugMessage)", "\1messageLogged(self, QOpenGLDebugMessage)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QOpenGLDebugLogger = {
    & ::QOpenGLDebugLogger::staticMetaObject,
    0,
    signals_QOpenGLDebugLogger,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLDebugLogger = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugLogger,
        {0},
        &plugin_QOpenGLDebugLogger
    },
    {
        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
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 130333 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 130337 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QOpenGLDebugMessage_Severities___hash__(PyObject *);}
static long slot_QOpenGLDebugMessage_Severities___hash__(PyObject *sipSelf)
{
     ::QOpenGLDebugMessage::Severities *sipCpp = reinterpret_cast< ::QOpenGLDebugMessage::Severities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Severities));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QOpenGLDebugMessage::Severities::Int();
#line 130355 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Severities::Int() != 0);
#line 130380 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Severities::Int() != a0->operator QOpenGLDebugMessage::Severities::Int());
#line 130410 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Severities::Int() == a0->operator QOpenGLDebugMessage::Severities::Int());
#line 130446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLDebugMessage::Severities(*sipCpp ^ a0);
#line 130485 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLDebugMessage_Severities___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLDebugMessage::Severities(*sipCpp | a0);
#line 130557 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLDebugMessage_Severities___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QOpenGLDebugMessage::Severities();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QOpenGLDebugMessage::Severities(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 130825 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLDebugMessage_Severities[] = {
    {(void *)slot_QOpenGLDebugMessage_Severities___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___xor__, xor_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___ior__, ior_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___or__, or_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___iand__, iand_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___and__, and_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___invert__, invert_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLDebugMessage_Severities, "\1QOpenGLDebugMessage.Severities()\n"
    "QOpenGLDebugMessage.Severities(Union[QOpenGLDebugMessage.Severities, QOpenGLDebugMessage.Severity])\n"
    "QOpenGLDebugMessage.Severities(QOpenGLDebugMessage.Severities)");


static pyqt5ClassPluginDef plugin_QOpenGLDebugMessage_Severities = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLDebugMessage_Severities = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugMessage__Severities,
        {0},
        &plugin_QOpenGLDebugMessage_Severities
    },
    {
        sipNameNr_Severities,
        {135, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLDebugMessage_Severities,
    -1,
    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,
    0,
    convertTo_QOpenGLDebugMessage_Severities,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 130911 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 130915 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QOpenGLDebugMessage_Types___hash__(PyObject *);}
static long slot_QOpenGLDebugMessage_Types___hash__(PyObject *sipSelf)
{
     ::QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast< ::QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QOpenGLDebugMessage::Types::Int();
#line 130933 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Types::Int() != 0);
#line 130958 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Types::Int() != a0->operator QOpenGLDebugMessage::Types::Int());
#line 130988 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Types::Int() == a0->operator QOpenGLDebugMessage::Types::Int());
#line 131024 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLDebugMessage::Types(*sipCpp ^ a0);
#line 131063 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLDebugMessage_Types___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLDebugMessage::Types(*sipCpp | a0);
#line 131135 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLDebugMessage_Types___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QOpenGLDebugMessage::Types();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QOpenGLDebugMessage::Types(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 131403 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLDebugMessage_Types[] = {
    {(void *)slot_QOpenGLDebugMessage_Types___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___xor__, xor_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___ior__, ior_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___or__, or_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___iand__, iand_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___and__, and_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___invert__, invert_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLDebugMessage_Types, "\1QOpenGLDebugMessage.Types()\n"
    "QOpenGLDebugMessage.Types(Union[QOpenGLDebugMessage.Types, QOpenGLDebugMessage.Type])\n"
    "QOpenGLDebugMessage.Types(QOpenGLDebugMessage.Types)");


static pyqt5ClassPluginDef plugin_QOpenGLDebugMessage_Types = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLDebugMessage_Types = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugMessage__Types,
        {0},
        &plugin_QOpenGLDebugMessage_Types
    },
    {
        sipNameNr_Types,
        {135, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLDebugMessage_Types,
    -1,
    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,
    0,
    convertTo_QOpenGLDebugMessage_Types,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 131489 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 131493 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QOpenGLDebugMessage_Sources___hash__(PyObject *);}
static long slot_QOpenGLDebugMessage_Sources___hash__(PyObject *sipSelf)
{
     ::QOpenGLDebugMessage::Sources *sipCpp = reinterpret_cast< ::QOpenGLDebugMessage::Sources *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Sources));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QOpenGLDebugMessage::Sources::Int();
#line 131511 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Sources::Int() != 0);
#line 131536 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Sources::Int() != a0->operator QOpenGLDebugMessage::Sources::Int());
#line 131566 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Sources::Int() == a0->operator QOpenGLDebugMessage::Sources::Int());
#line 131602 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLDebugMessage::Sources(*sipCpp ^ a0);
#line 131641 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLDebugMessage_Sources___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLDebugMessage::Sources(*sipCpp | a0);
#line 131713 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLDebugMessage_Sources___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QOpenGLDebugMessage::Sources();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QOpenGLDebugMessage::Sources(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 131981 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLDebugMessage_Sources[] = {
    {(void *)slot_QOpenGLDebugMessage_Sources___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___xor__, xor_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___ior__, ior_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___or__, or_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___iand__, iand_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___and__, and_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___invert__, invert_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLDebugMessage_Sources, "\1QOpenGLDebugMessage.Sources()\n"
    "QOpenGLDebugMessage.Sources(Union[QOpenGLDebugMessage.Sources, QOpenGLDebugMessage.Source])\n"
    "QOpenGLDebugMessage.Sources(QOpenGLDebugMessage.Sources)");


static pyqt5ClassPluginDef plugin_QOpenGLDebugMessage_Sources = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLDebugMessage_Sources = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugMessage__Sources,
        {0},
        &plugin_QOpenGLDebugMessage_Sources
    },
    {
        sipNameNr_Sources,
        {135, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLDebugMessage_Sources,
    -1,
    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,
    0,
    convertTo_QOpenGLDebugMessage_Sources,
    0,
    0,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 132067 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 132071 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLDebugMessage_swap, "swap(self, 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, "source(self) -> 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, "type(self) -> 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, "severity(self) -> 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, "id(self) -> 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, "message(self) -> 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, "createApplicationMessage(str, id: int = 0, severity: QOpenGLDebugMessage.Severity = QOpenGLDebugMessage.NotificationSeverity, type: QOpenGLDebugMessage.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, "createThirdPartyMessage(str, id: int = 0, severity: QOpenGLDebugMessage.Severity = QOpenGLDebugMessage.NotificationSeverity, type: QOpenGLDebugMessage.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);
}


/* 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 (sipIsOwnedByPython(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), 138},
    {sipName_AnySeverity, static_cast<int>( ::QOpenGLDebugMessage::AnySeverity), 137},
    {sipName_AnySource, static_cast<int>( ::QOpenGLDebugMessage::AnySource), 138},
    {sipName_AnyType, static_cast<int>( ::QOpenGLDebugMessage::AnyType), 140},
    {sipName_ApplicationSource, static_cast<int>( ::QOpenGLDebugMessage::ApplicationSource), 138},
    {sipName_DeprecatedBehaviorType, static_cast<int>( ::QOpenGLDebugMessage::DeprecatedBehaviorType), 140},
    {sipName_ErrorType, static_cast<int>( ::QOpenGLDebugMessage::ErrorType), 140},
    {sipName_GroupPopType, static_cast<int>( ::QOpenGLDebugMessage::GroupPopType), 140},
    {sipName_GroupPushType, static_cast<int>( ::QOpenGLDebugMessage::GroupPushType), 140},
    {sipName_HighSeverity, static_cast<int>( ::QOpenGLDebugMessage::HighSeverity), 137},
    {sipName_InvalidSeverity, static_cast<int>( ::QOpenGLDebugMessage::InvalidSeverity), 137},
    {sipName_InvalidSource, static_cast<int>( ::QOpenGLDebugMessage::InvalidSource), 138},
    {sipName_InvalidType, static_cast<int>( ::QOpenGLDebugMessage::InvalidType), 140},
    {sipName_LowSeverity, static_cast<int>( ::QOpenGLDebugMessage::LowSeverity), 137},
    {sipName_MarkerType, static_cast<int>( ::QOpenGLDebugMessage::MarkerType), 140},
    {sipName_MediumSeverity, static_cast<int>( ::QOpenGLDebugMessage::MediumSeverity), 137},
    {sipName_NotificationSeverity, static_cast<int>( ::QOpenGLDebugMessage::NotificationSeverity), 137},
    {sipName_OtherSource, static_cast<int>( ::QOpenGLDebugMessage::OtherSource), 138},
    {sipName_OtherType, static_cast<int>( ::QOpenGLDebugMessage::OtherType), 140},
    {sipName_PerformanceType, static_cast<int>( ::QOpenGLDebugMessage::PerformanceType), 140},
    {sipName_PortabilityType, static_cast<int>( ::QOpenGLDebugMessage::PortabilityType), 140},
    {sipName_ShaderCompilerSource, static_cast<int>( ::QOpenGLDebugMessage::ShaderCompilerSource), 138},
    {sipName_ThirdPartySource, static_cast<int>( ::QOpenGLDebugMessage::ThirdPartySource), 138},
    {sipName_UndefinedBehaviorType, static_cast<int>( ::QOpenGLDebugMessage::UndefinedBehaviorType), 140},
    {sipName_WindowSystemSource, static_cast<int>( ::QOpenGLDebugMessage::WindowSystemSource), 138},
};

PyDoc_STRVAR(doc_QOpenGLDebugMessage, "\1QOpenGLDebugMessage()\n"
    "QOpenGLDebugMessage(QOpenGLDebugMessage)");


static pyqt5ClassPluginDef plugin_QOpenGLDebugMessage = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLDebugMessage = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugMessage,
        {0},
        &plugin_QOpenGLDebugMessage
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 121 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 132565 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 132569 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 133 "sip/QtCore/qpycore_qpair.sip"
#include <qpair.h>
#line 132572 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLVersionProfile_version, "version(self) -> Tuple[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, "setVersion(self, 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, "profile(self) -> 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, "setProfile(self, 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, "hasProfiles(self) -> 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, "isLegacyVersion(self) -> 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, "isValid(self) -> 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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QOpenGLVersionProfile = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLVersionProfile = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLVersionProfile,
        {0},
        &plugin_QOpenGLVersionProfile
    },
    {
        sipNameNr_QOpenGLVersionProfile,
        {0, 0, 1},
        7, methods_QOpenGLVersionProfile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLVersionProfile,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 132998 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 133002 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 133005 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 121 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 133008 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 133011 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qset.sip"
#include <qset.h>
#line 133014 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 133017 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 133020 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 133023 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 133026 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 133029 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 133032 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 133035 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 133038 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 133041 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 133044 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 133047 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 133050 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 133053 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 133056 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 133059 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 133062 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 133065 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQOpenGLContext::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLContext);

    return  ::QOpenGLContext::metaObject();
}

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));
}

bool sipQOpenGLContext::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QOpenGLContext::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQOpenGLContext::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QOpenGLContext::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLContext::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QOpenGLContext::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLContext::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QOpenGLContext::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLContext::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QOpenGLContext::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOpenGLContext::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QOpenGLContext::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 133359 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 133419 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "setFormat(self, 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, "setShareContext(self, 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, "setScreen(self, 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, "create(self) -> 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, "isValid(self) -> 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, "format(self) -> 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, "shareContext(self) -> 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, "shareGroup(self) -> 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, "screen(self) -> 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, "defaultFramebufferObject(self) -> 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, "makeCurrent(self, 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, "doneCurrent(self)");

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, "swapBuffers(self, 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, "surface(self) -> 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, "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, "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, "extensions(self) -> object");

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, "hasExtension(self, Union[QByteArray, bytes, bytearray]) -> 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, "versionFunctions(self, versionProfile: QOpenGLVersionProfile = 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 78 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
        sipRes = qpyopengl_version_functions(sipCpp, sipSelf, a0);
#line 134170 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "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, "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, "isOpenGLES(self) -> 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, "setNativeHandle(self, Any)");

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, "nativeHandle(self) -> Any");

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;
}


PyDoc_STRVAR(doc_QOpenGLContext_supportsThreadedOpenGL, "supportsThreadedOpenGL() -> bool");

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

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

            sipRes =  ::QOpenGLContext::supportsThreadedOpenGL();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_supportsThreadedOpenGL, doc_QOpenGLContext_supportsThreadedOpenGL);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_globalShareContext, "globalShareContext() -> QOpenGLContext");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::QOpenGLContext*sipRes;

            sipRes =  ::QOpenGLContext::globalShareContext();

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_globalShareContext, doc_QOpenGLContext_globalShareContext);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLContext(void *, const sipTypeDef *);}
static void *cast_QOpenGLContext(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLContext *sipCpp = reinterpret_cast< ::QOpenGLContext *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOpenGLContext *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLContext(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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_globalShareContext), meth_QOpenGLContext_globalShareContext, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_globalShareContext)},
    {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_supportsThreadedOpenGL), meth_QOpenGLContext_supportsThreadedOpenGL, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_supportsThreadedOpenGL)},
    {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), 131},
    {sipName_LibGLES, static_cast<int>( ::QOpenGLContext::LibGLES), 131},
};

PyDoc_STRVAR(doc_QOpenGLContext, "\1QOpenGLContext(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QOpenGLContext[] = {
    {"aboutToBeDestroyed()", "\1aboutToBeDestroyed(self)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QOpenGLContext = {
    & ::QOpenGLContext::staticMetaObject,
    0,
    signals_QOpenGLContext,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLContext = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLContext,
        {0},
        &plugin_QOpenGLContext
    },
    {
        sipNameNr_QOpenGLContext,
        {0, 0, 1},
        35, 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
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 134555 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 134559 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 134562 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 134565 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 134568 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 134571 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 134574 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 134577 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 134580 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 134583 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 134586 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 134589 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 134592 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 134595 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 134598 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 134601 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 134604 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 134607 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 134610 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLContextGroup_shares, "shares(self) -> object");

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, "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 inheritance hierarchy. */
extern "C" {static void *cast_QOpenGLContextGroup(void *, const sipTypeDef *);}
static void *cast_QOpenGLContextGroup(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOpenGLContextGroup *sipCpp = reinterpret_cast< ::QOpenGLContextGroup *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_QOpenGLContextGroup(sipGetAddress(sipSelf), 0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLContextGroup[] = {{25, 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)}
};


static pyqt5ClassPluginDef plugin_QOpenGLContextGroup = {
    & ::QOpenGLContextGroup::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLContextGroup = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLContextGroup,
        {0},
        &plugin_QOpenGLContextGroup
    },
    {
        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
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 134772 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 134776 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QOpenGLBuffer_RangeAccessFlags___hash__(PyObject *);}
static long slot_QOpenGLBuffer_RangeAccessFlags___hash__(PyObject *sipSelf)
{
     ::QOpenGLBuffer::RangeAccessFlags *sipCpp = reinterpret_cast< ::QOpenGLBuffer::RangeAccessFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer_RangeAccessFlags));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QOpenGLBuffer::RangeAccessFlags::Int();
#line 134794 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLBuffer::RangeAccessFlags::Int() != 0);
#line 134819 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLBuffer::RangeAccessFlags::Int() != a0->operator QOpenGLBuffer::RangeAccessFlags::Int());
#line 134849 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLBuffer::RangeAccessFlags::Int() == a0->operator QOpenGLBuffer::RangeAccessFlags::Int());
#line 134885 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLBuffer::RangeAccessFlags(*sipCpp ^ a0);
#line 134924 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLBuffer_RangeAccessFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QOpenGLBuffer::RangeAccessFlags(*sipCpp | a0);
#line 134996 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QOpenGLBuffer_RangeAccessFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QOpenGLBuffer::RangeAccessFlags();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QOpenGLBuffer::RangeAccessFlags(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 135264 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLBuffer_RangeAccessFlags[] = {
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___xor__, xor_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___ior__, ior_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___or__, or_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___iand__, iand_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___and__, and_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___invert__, invert_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLBuffer_RangeAccessFlags, "\1QOpenGLBuffer.RangeAccessFlags()\n"
    "QOpenGLBuffer.RangeAccessFlags(Union[QOpenGLBuffer.RangeAccessFlags, QOpenGLBuffer.RangeAccessFlag])\n"
    "QOpenGLBuffer.RangeAccessFlags(QOpenGLBuffer.RangeAccessFlags)");


static pyqt5ClassPluginDef plugin_QOpenGLBuffer_RangeAccessFlags = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLBuffer_RangeAccessFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLBuffer__RangeAccessFlags,
        {0},
        &plugin_QOpenGLBuffer_RangeAccessFlags
    },
    {
        sipNameNr_RangeAccessFlags,
        {124, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLBuffer_RangeAccessFlags,
    -1,
    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,
    0,
    convertTo_QOpenGLBuffer_RangeAccessFlags,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 135350 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 135354 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLBuffer_type, "type(self) -> 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, "usagePattern(self) -> 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, "setUsagePattern(self, 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, "create(self) -> 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, "isCreated(self) -> 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, "destroy(self)");

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, "bind(self) -> 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, "release(self)\n"
    "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, "bufferId(self) -> 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, "size(self) -> 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, "read(self, 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, "write(self, 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, "allocate(self, sip.voidptr, int)\n"
    "allocate(self, 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, "map(self, 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, "unmap(self) -> 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, "mapRange(self, int, int, Union[QOpenGLBuffer.RangeAccessFlags, QOpenGLBuffer.RangeAccessFlag]) -> 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 135859 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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 (sipIsOwnedByPython(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), 129},
    {sipName_DynamicDraw, static_cast<int>( ::QOpenGLBuffer::DynamicDraw), 129},
    {sipName_DynamicRead, static_cast<int>( ::QOpenGLBuffer::DynamicRead), 129},
    {sipName_IndexBuffer, static_cast<int>( ::QOpenGLBuffer::IndexBuffer), 128},
    {sipName_PixelPackBuffer, static_cast<int>( ::QOpenGLBuffer::PixelPackBuffer), 128},
    {sipName_PixelUnpackBuffer, static_cast<int>( ::QOpenGLBuffer::PixelUnpackBuffer), 128},
    {sipName_RangeFlushExplicit, static_cast<int>( ::QOpenGLBuffer::RangeFlushExplicit), 126},
    {sipName_RangeInvalidate, static_cast<int>( ::QOpenGLBuffer::RangeInvalidate), 126},
    {sipName_RangeInvalidateBuffer, static_cast<int>( ::QOpenGLBuffer::RangeInvalidateBuffer), 126},
    {sipName_RangeRead, static_cast<int>( ::QOpenGLBuffer::RangeRead), 126},
    {sipName_RangeUnsynchronized, static_cast<int>( ::QOpenGLBuffer::RangeUnsynchronized), 126},
    {sipName_RangeWrite, static_cast<int>( ::QOpenGLBuffer::RangeWrite), 126},
    {sipName_ReadOnly, static_cast<int>( ::QOpenGLBuffer::ReadOnly), 125},
    {sipName_ReadWrite, static_cast<int>( ::QOpenGLBuffer::ReadWrite), 125},
    {sipName_StaticCopy, static_cast<int>( ::QOpenGLBuffer::StaticCopy), 129},
    {sipName_StaticDraw, static_cast<int>( ::QOpenGLBuffer::StaticDraw), 129},
    {sipName_StaticRead, static_cast<int>( ::QOpenGLBuffer::StaticRead), 129},
    {sipName_StreamCopy, static_cast<int>( ::QOpenGLBuffer::StreamCopy), 129},
    {sipName_StreamDraw, static_cast<int>( ::QOpenGLBuffer::StreamDraw), 129},
    {sipName_StreamRead, static_cast<int>( ::QOpenGLBuffer::StreamRead), 129},
    {sipName_VertexBuffer, static_cast<int>( ::QOpenGLBuffer::VertexBuffer), 128},
    {sipName_WriteOnly, static_cast<int>( ::QOpenGLBuffer::WriteOnly), 125},
};

PyDoc_STRVAR(doc_QOpenGLBuffer, "\1QOpenGLBuffer()\n"
    "QOpenGLBuffer(QOpenGLBuffer.Type)\n"
    "QOpenGLBuffer(QOpenGLBuffer)");


static pyqt5ClassPluginDef plugin_QOpenGLBuffer = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOpenGLBuffer = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLBuffer,
        {0},
        &plugin_QOpenGLBuffer
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qoffscreensurface.sip"
#include <qoffscreensurface.h>
#line 136064 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 136068 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 136071 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 136074 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 136077 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 136080 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 136083 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 136086 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 136089 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 136092 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 136095 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 136098 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 136101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 136104 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 136107 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 136110 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 136113 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 136116 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 136119 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 136122 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 136125 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
     ::QSurfaceFormat format() const;
     ::QSurface::SurfaceType surfaceType() const;
     ::QSize size() const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQOffscreenSurface::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOffscreenSurface);

    return  ::QOffscreenSurface::metaObject();
}

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));
}

 ::QSurfaceFormat sipQOffscreenSurface::format() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_format);

    if (!sipMeth)
        return  ::QOffscreenSurface::format();

    extern  ::QSurfaceFormat sipVH_QtGui_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_36(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSurface::SurfaceType sipQOffscreenSurface::surfaceType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_surfaceType);

    if (!sipMeth)
        return  ::QOffscreenSurface::surfaceType();

    extern  ::QSurface::SurfaceType sipVH_QtGui_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_37(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QSize sipQOffscreenSurface::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return  ::QOffscreenSurface::size();

    extern  ::QSize sipVH_QtGui_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_38(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQOffscreenSurface::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QOffscreenSurface::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQOffscreenSurface::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QOffscreenSurface::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQOffscreenSurface::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QOffscreenSurface::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOffscreenSurface::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QOffscreenSurface::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOffscreenSurface::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QOffscreenSurface::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOffscreenSurface::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QOffscreenSurface::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQOffscreenSurface::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QOffscreenSurface::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 136467 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 136527 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "surfaceType(self) -> 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 || sipIsDerivedClass((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, "create(self)");

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, "destroy(self)");

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, "isValid(self) -> 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, "setFormat(self, 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, "format(self) -> 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 || sipIsDerivedClass((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, "requestedFormat(self) -> 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, "size(self) -> 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 || sipIsDerivedClass((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, "screen(self) -> 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, "setScreen(self, 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;
}


PyDoc_STRVAR(doc_QOffscreenSurface_nativeHandle, "nativeHandle(self) -> sip.voidptr");

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

    {
        const  ::QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            void*sipRes;

            sipRes = sipCpp->nativeHandle();

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_nativeHandle, doc_QOffscreenSurface_nativeHandle);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_setNativeHandle, "setNativeHandle(self, sip.voidptr)");

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

    {
        void* a0;
         ::QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bv", &sipSelf, sipType_QOffscreenSurface, &sipCpp, &a0))
        {
            sipCpp->setNativeHandle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_setNativeHandle, doc_QOffscreenSurface_setNativeHandle);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QOffscreenSurface(void *, const sipTypeDef *);}
static void *cast_QOffscreenSurface(void *sipCppV, const sipTypeDef *targetType)
{
     ::QOffscreenSurface *sipCpp = reinterpret_cast< ::QOffscreenSurface *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_QSurface)
        return static_cast< ::QSurface *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQOffscreenSurface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QOffscreenSurface(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 0, 0}, {268, 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_nativeHandle), meth_QOffscreenSurface_nativeHandle, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_nativeHandle)},
    {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_setNativeHandle), meth_QOffscreenSurface_setNativeHandle, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_setNativeHandle)},
    {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}
};

PyDoc_STRVAR(doc_QOffscreenSurface, "\1QOffscreenSurface(screen: QScreen = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QOffscreenSurface[] = {
    {"screenChanged(QScreen*)", "\1screenChanged(self, QScreen)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QOffscreenSurface = {
    & ::QOffscreenSurface::staticMetaObject,
    0,
    signals_QOffscreenSurface,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QOffscreenSurface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QOffscreenSurface,
        {0},
        &plugin_QOffscreenSurface
    },
    {
        sipNameNr_QOffscreenSurface,
        {0, 0, 1},
        21, 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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 137253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 137257 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 137260 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QSurface_surfaceClass, "surfaceClass(self) -> 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, "format(self) -> 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, "surfaceType(self) -> 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, "size(self) -> 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, "supportsOpenGL(self) -> 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;
}


/* 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 (sipIsOwnedByPython(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), 269},
    {sipName_OpenGLSurface, static_cast<int>( ::QSurface::OpenGLSurface), 270},
    {sipName_OpenVGSurface, static_cast<int>( ::QSurface::OpenVGSurface), 270},
    {sipName_RasterGLSurface, static_cast<int>( ::QSurface::RasterGLSurface), 270},
    {sipName_RasterSurface, static_cast<int>( ::QSurface::RasterSurface), 270},
    {sipName_Window, static_cast<int>( ::QSurface::Window), 269},
};


static pyqt5ClassPluginDef plugin_QSurface = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QSurface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QSurface,
        {0},
        &plugin_QSurface
    },
    {
        sipNameNr_QSurface,
        {0, 0, 1},
        5, methods_QSurface,
        6, enummembers_QSurface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmovie.sip"
#include <qmovie.h>
#line 137519 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 137523 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 137526 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 137529 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 137532 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimagereader.sip"
#include <qimagereader.h>
#line 137535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 137538 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 137541 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 137544 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 137547 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 137550 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 137553 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 137556 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 137559 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 137562 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 137565 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 137568 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 137571 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 137574 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 137577 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 137580 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 137583 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 137586 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 137589 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQMovie::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QMovie);

    return  ::QMovie::metaObject();
}

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));
}

bool sipQMovie::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QMovie::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQMovie::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QMovie::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQMovie::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QMovie::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQMovie::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QMovie::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQMovie::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QMovie::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQMovie::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QMovie::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 137895 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 137955 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "supportedFormats() -> List[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, "setDevice(self, 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, "device(self) -> 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, "setFileName(self, 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, "fileName(self) -> 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, "setFormat(self, Union[QByteArray, bytes, bytearray])");

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, "format(self) -> 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, "setBackgroundColor(self, Union[QColor, Qt.GlobalColor, QGradient])");

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, "backgroundColor(self) -> 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, "state(self) -> 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, "frameRect(self) -> 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, "currentImage(self) -> 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, "currentPixmap(self) -> 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, "isValid(self) -> 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, "jumpToFrame(self, 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, "loopCount(self) -> 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, "frameCount(self) -> 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, "nextFrameDelay(self) -> 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, "currentFrameNumber(self) -> 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, "setSpeed(self, 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, "speed(self) -> 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, "scaledSize(self) -> 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, "setScaledSize(self, 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, "cacheMode(self) -> 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, "setCacheMode(self, 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, "start(self)");

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, "jumpToNextFrame(self) -> 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, "setPaused(self, 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, "stop(self)");

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 inheritance hierarchy. */
extern "C" {static void *cast_QMovie(void *, const sipTypeDef *);}
static void *cast_QMovie(void *sipCppV, const sipTypeDef *targetType)
{
     ::QMovie *sipCpp = reinterpret_cast< ::QMovie *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQMovie *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QMovie(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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), 120},
    {sipName_CacheNone, static_cast<int>( ::QMovie::CacheNone), 120},
    {sipName_NotRunning, static_cast<int>( ::QMovie::NotRunning), 121},
    {sipName_Paused, static_cast<int>( ::QMovie::Paused), 121},
    {sipName_Running, static_cast<int>( ::QMovie::Running), 121},
};

PyDoc_STRVAR(doc_QMovie, "\1QMovie(parent: QObject = None)\n"
    "QMovie(QIODevice, format: Union[QByteArray, bytes, bytearray] = QByteArray(), parent: QObject = None)\n"
    "QMovie(str, format: Union[QByteArray, bytes, bytearray] = QByteArray(), parent: QObject = None)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QMovie[] = {
    {"frameChanged(int)", "\1frameChanged(self, int)", 0, 0},
    {"finished()", "\1finished(self)", 0, 0},
    {"error(QImageReader::ImageReaderError)", "\1error(self, QImageReader.ImageReaderError)", 0, 0},
    {"stateChanged(QMovie::MovieState)", "\1stateChanged(self, QMovie.MovieState)", 0, 0},
    {"updated(QRect)", "\1updated(self, QRect)", 0, 0},
    {"resized(QSize)", "\1resized(self, QSize)", 0, 0},
    {"started()", "\1started(self)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QMovie = {
    & ::QMovie::staticMetaObject,
    0,
    signals_QMovie,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMovie = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMovie,
        {0},
        &plugin_QMovie
    },
    {
        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
};

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 139239 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 139243 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 139246 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 139249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 139252 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 139255 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 139258 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 139261 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qquaternion.sip"
#include <qquaternion.h>
#line 139264 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 139267 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix4x4_determinant, "determinant(self) -> 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, "inverted(self) -> Tuple[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, "transposed(self) -> 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, "normalMatrix(self) -> 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, "scale(self, QVector3D)\n"
    "scale(self, float, float)\n"
    "scale(self, float, float, float)\n"
    "scale(self, 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, "translate(self, QVector3D)\n"
    "translate(self, float, float)\n"
    "translate(self, 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, "rotate(self, float, QVector3D)\n"
    "rotate(self, float, float, float, z: float = 0)\n"
    "rotate(self, 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, "ortho(self, QRect)\n"
    "ortho(self, QRectF)\n"
    "ortho(self, 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, "frustum(self, 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, "perspective(self, 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, "lookAt(self, 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, "copyDataTo(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
        float values[16];
        
        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(16, values, &sipRes);
#line 139768 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "toTransform(self) -> QTransform\n"
    "toTransform(self, 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, "mapRect(self, QRect) -> QRect\n"
    "mapRect(self, 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, "data(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
        sipError = qtgui_matrixDataAsList(16, sipCpp->constData(), &sipRes);
#line 139896 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "optimize(self)");

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, "column(self, 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, "setColumn(self, 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, "row(self, 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, "setRow(self, 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, "isIdentity(self) -> 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, "setToIdentity(self)");

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, "fill(self, 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, "map(self, QPoint) -> QPoint\n"
    "map(self, Union[QPointF, QPoint]) -> QPointF\n"
    "map(self, QVector3D) -> QVector3D\n"
    "map(self, 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, "mapVector(self, 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, "viewport(self, float, float, float, float, nearPlane: float = 0, farPlane: float = 1)\n"
    "viewport(self, 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;
}


PyDoc_STRVAR(doc_QMatrix4x4_isAffine, "isAffine(self) -> bool");

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

    {
        const  ::QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAffine();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_isAffine, doc_QMatrix4x4_isAffine);

    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___matmul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___matmul__(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, matmul_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___imatmul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___imatmul__(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___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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
        int row, column;
        
        if ((sipError = qtgui_matrixParseIndex(a0, 4, 4, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 140884 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 140933 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 141013 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 141048 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qmatrix4x4.sip"
        float values[16];
        
        if ((sipError = qtgui_matrixDataFromSequence(a0, 16, values)) == sipErrorNone)
            sipCpp = new QMatrix4x4(values);
#line 141111 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___matmul__, matmul_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___imatmul__, imatmul_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_isAffine), meth_QMatrix4x4_isAffine, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_isAffine)},
    {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[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)");


static pyqt5ClassPluginDef plugin_QMatrix4x4 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMatrix4x4 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMatrix4x4,
        {0},
        &plugin_QMatrix4x4
    },
    {
        sipNameNr_QMatrix4x4,
        {0, 0, 1},
        27, methods_QMatrix4x4,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix4x4,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QMatrix4x4,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 141299 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 141303 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 141306 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 141309 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QKeySequence_count, "count(self) -> 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, "isEmpty(self) -> 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, "matches(self, Union[QKeySequence, QKeySequence.StandardKey, str, int]) -> 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, "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, "isDetached(self) -> 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, "swap(self, QKeySequence)");

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

    {
         ::QKeySequence* a0;
         ::QKeySequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QKeySequence, &sipCpp, sipType_QKeySequence, &a0))
        {
            sipCpp->swap(*a0);

            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, "toString(self, format: QKeySequence.SequenceFormat = 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, "fromString(str, format: QKeySequence.SequenceFormat = 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, "keyBindings(QKeySequence.StandardKey) -> object");

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, "listFromString(str, format: QKeySequence.SequenceFormat = QKeySequence.PortableText) -> List[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, "listToString(Iterable[Union[QKeySequence, QKeySequence.StandardKey, str, int]], format: QKeySequence.SequenceFormat = 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 long slot_QKeySequence___hash__(PyObject *);}
static long slot_QKeySequence___hash__(PyObject *sipSelf)
{
     ::QKeySequence *sipCpp = reinterpret_cast< ::QKeySequence *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeySequence));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 238 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qkeysequence.sip"
        sipRes = qHash(*sipCpp);
#line 141669 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 210 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qkeysequence.sip"
        Py_ssize_t idx = sipConvertFromSequenceIndex(a0, sipCpp->count());
        
        if (idx < 0)
            sipIsErr = 1;
        else
            sipRes = sipCpp->operator[]((uint)idx);
#line 141908 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 141939 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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 91 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qkeysequence.sip"
    sipRes = Py_BuildValue((char *)"iiii", sipCpp->operator[](0), sipCpp->operator[](1), sipCpp->operator[](2), sipCpp->operator[](3));
#line 141965 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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 197 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qkeysequence.sip"
        if (a0->canConvert<QKeySequence>())
            sipCpp = new QKeySequence(a0->value<QKeySequence>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 142083 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 142169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QKeySequence[] = {
    {(void *)slot_QKeySequence___hash__, hash_slot},
    {(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), 88},
    {sipName_Back, static_cast<int>( ::QKeySequence::Back), 88},
    {sipName_Backspace, static_cast<int>( ::QKeySequence::Backspace), 88},
    {sipName_Bold, static_cast<int>( ::QKeySequence::Bold), 88},
    {sipName_Cancel, static_cast<int>( ::QKeySequence::Cancel), 88},
    {sipName_Close, static_cast<int>( ::QKeySequence::Close), 88},
    {sipName_Copy, static_cast<int>( ::QKeySequence::Copy), 88},
    {sipName_Cut, static_cast<int>( ::QKeySequence::Cut), 88},
    {sipName_Delete, static_cast<int>( ::QKeySequence::Delete), 88},
    {sipName_DeleteCompleteLine, static_cast<int>( ::QKeySequence::DeleteCompleteLine), 88},
    {sipName_DeleteEndOfLine, static_cast<int>( ::QKeySequence::DeleteEndOfLine), 88},
    {sipName_DeleteEndOfWord, static_cast<int>( ::QKeySequence::DeleteEndOfWord), 88},
    {sipName_DeleteStartOfWord, static_cast<int>( ::QKeySequence::DeleteStartOfWord), 88},
    {sipName_Deselect, static_cast<int>( ::QKeySequence::Deselect), 88},
    {sipName_ExactMatch, static_cast<int>( ::QKeySequence::ExactMatch), 87},
    {sipName_Find, static_cast<int>( ::QKeySequence::Find), 88},
    {sipName_FindNext, static_cast<int>( ::QKeySequence::FindNext), 88},
    {sipName_FindPrevious, static_cast<int>( ::QKeySequence::FindPrevious), 88},
    {sipName_Forward, static_cast<int>( ::QKeySequence::Forward), 88},
    {sipName_FullScreen, static_cast<int>( ::QKeySequence::FullScreen), 88},
    {sipName_HelpContents, static_cast<int>( ::QKeySequence::HelpContents), 88},
    {sipName_InsertLineSeparator, static_cast<int>( ::QKeySequence::InsertLineSeparator), 88},
    {sipName_InsertParagraphSeparator, static_cast<int>( ::QKeySequence::InsertParagraphSeparator), 88},
    {sipName_Italic, static_cast<int>( ::QKeySequence::Italic), 88},
    {sipName_MoveToEndOfBlock, static_cast<int>( ::QKeySequence::MoveToEndOfBlock), 88},
    {sipName_MoveToEndOfDocument, static_cast<int>( ::QKeySequence::MoveToEndOfDocument), 88},
    {sipName_MoveToEndOfLine, static_cast<int>( ::QKeySequence::MoveToEndOfLine), 88},
    {sipName_MoveToNextChar, static_cast<int>( ::QKeySequence::MoveToNextChar), 88},
    {sipName_MoveToNextLine, static_cast<int>( ::QKeySequence::MoveToNextLine), 88},
    {sipName_MoveToNextPage, static_cast<int>( ::QKeySequence::MoveToNextPage), 88},
    {sipName_MoveToNextWord, static_cast<int>( ::QKeySequence::MoveToNextWord), 88},
    {sipName_MoveToPreviousChar, static_cast<int>( ::QKeySequence::MoveToPreviousChar), 88},
    {sipName_MoveToPreviousLine, static_cast<int>( ::QKeySequence::MoveToPreviousLine), 88},
    {sipName_MoveToPreviousPage, static_cast<int>( ::QKeySequence::MoveToPreviousPage), 88},
    {sipName_MoveToPreviousWord, static_cast<int>( ::QKeySequence::MoveToPreviousWord), 88},
    {sipName_MoveToStartOfBlock, static_cast<int>( ::QKeySequence::MoveToStartOfBlock), 88},
    {sipName_MoveToStartOfDocument, static_cast<int>( ::QKeySequence::MoveToStartOfDocument), 88},
    {sipName_MoveToStartOfLine, static_cast<int>( ::QKeySequence::MoveToStartOfLine), 88},
    {sipName_NativeText, static_cast<int>( ::QKeySequence::NativeText), 86},
    {sipName_New, static_cast<int>( ::QKeySequence::New), 88},
    {sipName_NextChild, static_cast<int>( ::QKeySequence::NextChild), 88},
    {sipName_NoMatch, static_cast<int>( ::QKeySequence::NoMatch), 87},
    {sipName_Open, static_cast<int>( ::QKeySequence::Open), 88},
    {sipName_PartialMatch, static_cast<int>( ::QKeySequence::PartialMatch), 87},
    {sipName_Paste, static_cast<int>( ::QKeySequence::Paste), 88},
    {sipName_PortableText, static_cast<int>( ::QKeySequence::PortableText), 86},
    {sipName_Preferences, static_cast<int>( ::QKeySequence::Preferences), 88},
    {sipName_PreviousChild, static_cast<int>( ::QKeySequence::PreviousChild), 88},
    {sipName_Print, static_cast<int>( ::QKeySequence::Print), 88},
    {sipName_Quit, static_cast<int>( ::QKeySequence::Quit), 88},
    {sipName_Redo, static_cast<int>( ::QKeySequence::Redo), 88},
    {sipName_Refresh, static_cast<int>( ::QKeySequence::Refresh), 88},
    {sipName_Replace, static_cast<int>( ::QKeySequence::Replace), 88},
    {sipName_Save, static_cast<int>( ::QKeySequence::Save), 88},
    {sipName_SaveAs, static_cast<int>( ::QKeySequence::SaveAs), 88},
    {sipName_SelectAll, static_cast<int>( ::QKeySequence::SelectAll), 88},
    {sipName_SelectEndOfBlock, static_cast<int>( ::QKeySequence::SelectEndOfBlock), 88},
    {sipName_SelectEndOfDocument, static_cast<int>( ::QKeySequence::SelectEndOfDocument), 88},
    {sipName_SelectEndOfLine, static_cast<int>( ::QKeySequence::SelectEndOfLine), 88},
    {sipName_SelectNextChar, static_cast<int>( ::QKeySequence::SelectNextChar), 88},
    {sipName_SelectNextLine, static_cast<int>( ::QKeySequence::SelectNextLine), 88},
    {sipName_SelectNextPage, static_cast<int>( ::QKeySequence::SelectNextPage), 88},
    {sipName_SelectNextWord, static_cast<int>( ::QKeySequence::SelectNextWord), 88},
    {sipName_SelectPreviousChar, static_cast<int>( ::QKeySequence::SelectPreviousChar), 88},
    {sipName_SelectPreviousLine, static_cast<int>( ::QKeySequence::SelectPreviousLine), 88},
    {sipName_SelectPreviousPage, static_cast<int>( ::QKeySequence::SelectPreviousPage), 88},
    {sipName_SelectPreviousWord, static_cast<int>( ::QKeySequence::SelectPreviousWord), 88},
    {sipName_SelectStartOfBlock, static_cast<int>( ::QKeySequence::SelectStartOfBlock), 88},
    {sipName_SelectStartOfDocument, static_cast<int>( ::QKeySequence::SelectStartOfDocument), 88},
    {sipName_SelectStartOfLine, static_cast<int>( ::QKeySequence::SelectStartOfLine), 88},
    {sipName_Underline, static_cast<int>( ::QKeySequence::Underline), 88},
    {sipName_Undo, static_cast<int>( ::QKeySequence::Undo), 88},
    {sipName_UnknownKey, static_cast<int>( ::QKeySequence::UnknownKey), 88},
    {sipName_WhatsThis, static_cast<int>( ::QKeySequence::WhatsThis), 88},
    {sipName_ZoomIn, static_cast<int>( ::QKeySequence::ZoomIn), 88},
    {sipName_ZoomOut, static_cast<int>( ::QKeySequence::ZoomOut), 88},
};

PyDoc_STRVAR(doc_QKeySequence, "\1QKeySequence()\n"
    "QKeySequence(Union[QKeySequence, QKeySequence.StandardKey, str, int])\n"
    "QKeySequence(str, format: QKeySequence.SequenceFormat = QKeySequence.NativeText)\n"
    "QKeySequence(int, key2: int = 0, key3: int = 0, key4: int = 0)\n"
    "QKeySequence(Any)");


static pyqt5ClassPluginDef plugin_QKeySequence = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QKeySequence = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QKeySequence,
        {0},
        &plugin_QKeySequence
    },
    {
        sipNameNr_QKeySequence,
        {0, 0, 1},
        11, methods_QKeySequence,
        76, enummembers_QKeySequence,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QKeySequence,
    -1,
    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,
    0,
    convertTo_QKeySequence,
    0,
    0,
    pickle_QKeySequence,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qinputmethod.sip"
#include <qinputmethod.h>
#line 142348 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 142352 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 142355 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 142358 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 142361 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 142364 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 142367 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 142370 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 142373 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 142376 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 142379 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 142382 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 142385 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 142388 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 142391 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 142394 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 142397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 142400 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 142403 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 142406 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 142409 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QInputMethod_inputItemTransform, "inputItemTransform(self) -> 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, "setInputItemTransform(self, 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, "cursorRectangle(self) -> 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, "keyboardRectangle(self) -> 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, "isVisible(self) -> 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, "setVisible(self, 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, "isAnimating(self) -> 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, "locale(self) -> 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, "inputDirection(self) -> 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, "inputItemRectangle(self) -> 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, "setInputItemRectangle(self, 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, "queryFocusObject(Qt.InputMethodQuery, Any) -> Any");

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, "show(self)");

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, "hide(self)");

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, "update(self, Union[Qt.InputMethodQueries, Qt.InputMethodQuery])");

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, "reset(self)");

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, "commit(self)");

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, "invokeAction(self, 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;
}


PyDoc_STRVAR(doc_QInputMethod_anchorRectangle, "anchorRectangle(self) -> QRectF");

extern "C" {static PyObject *meth_QInputMethod_anchorRectangle(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_anchorRectangle(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->anchorRectangle());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_anchorRectangle, doc_QInputMethod_anchorRectangle);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_inputItemClipRectangle, "inputItemClipRectangle(self) -> QRectF");

extern "C" {static PyObject *meth_QInputMethod_inputItemClipRectangle(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_inputItemClipRectangle(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->inputItemClipRectangle());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_inputItemClipRectangle, doc_QInputMethod_inputItemClipRectangle);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QInputMethod(void *, const sipTypeDef *);}
static void *cast_QInputMethod(void *sipCppV, const sipTypeDef *targetType)
{
     ::QInputMethod *sipCpp = reinterpret_cast< ::QInputMethod *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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[] = {{25, 0, 1}};


static PyMethodDef methods_QInputMethod[] = {
    {SIP_MLNAME_CAST(sipName_anchorRectangle), meth_QInputMethod_anchorRectangle, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_anchorRectangle)},
    {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_inputItemClipRectangle), meth_QInputMethod_inputItemClipRectangle, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_inputItemClipRectangle)},
    {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), 78},
    {sipName_ContextMenu, static_cast<int>( ::QInputMethod::ContextMenu), 78},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QInputMethod[] = {
    {"inputItemClipRectangleChanged()", "\1inputItemClipRectangleChanged(self)", 0, 0},
    {"anchorRectangleChanged()", "\1anchorRectangleChanged(self)", 0, 0},
    {"inputDirectionChanged(Qt::LayoutDirection)", "\1inputDirectionChanged(self, Qt.LayoutDirection)", 0, 0},
    {"localeChanged()", "\1localeChanged(self)", 0, 0},
    {"animatingChanged()", "\1animatingChanged(self)", 0, 0},
    {"visibleChanged()", "\1visibleChanged(self)", 0, 0},
    {"keyboardRectangleChanged()", "\1keyboardRectangleChanged(self)", 0, 0},
    {"cursorRectangleChanged()", "\1cursorRectangleChanged(self)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QInputMethod = {
    & ::QInputMethod::staticMetaObject,
    0,
    signals_QInputMethod,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QInputMethod = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QInputMethod,
        {0},
        &plugin_QInputMethod
    },
    {
        sipNameNr_QInputMethod,
        {0, 0, 1},
        20, 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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimagewriter.sip"
#include <qimagewriter.h>
#line 143100 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 143104 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 143107 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 143110 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 143113 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 143116 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 143119 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 143122 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QImageWriter_setFormat, "setFormat(self, Union[QByteArray, bytes, bytearray])");

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, "format(self) -> 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, "setDevice(self, 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, "device(self) -> 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, "setFileName(self, 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, "fileName(self) -> 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, "setQuality(self, 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, "quality(self) -> 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, "setGamma(self, 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, "gamma(self) -> 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, "canWrite(self) -> 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, "write(self, 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, "error(self) -> 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, "errorString(self) -> 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, "supportedImageFormats() -> List[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, "setText(self, 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, "supportsOption(self, 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, "setCompression(self, 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, "compression(self) -> 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, "supportedMimeTypes() -> List[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, "setSubType(self, Union[QByteArray, bytes, bytearray])");

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, "subType(self) -> 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, "supportedSubTypes(self) -> List[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;
}


PyDoc_STRVAR(doc_QImageWriter_setOptimizedWrite, "setOptimizedWrite(self, bool)");

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

    {
        bool a0;
         ::QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QImageWriter, &sipCpp, &a0))
        {
            sipCpp->setOptimizedWrite(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setOptimizedWrite, doc_QImageWriter_setOptimizedWrite);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_optimizedWrite, "optimizedWrite(self) -> bool");

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

    {
        const  ::QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->optimizedWrite();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_optimizedWrite, doc_QImageWriter_optimizedWrite);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_setProgressiveScanWrite, "setProgressiveScanWrite(self, bool)");

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

    {
        bool a0;
         ::QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QImageWriter, &sipCpp, &a0))
        {
            sipCpp->setProgressiveScanWrite(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setProgressiveScanWrite, doc_QImageWriter_setProgressiveScanWrite);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_progressiveScanWrite, "progressiveScanWrite(self) -> bool");

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

    {
        const  ::QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->progressiveScanWrite();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_progressiveScanWrite, doc_QImageWriter_progressiveScanWrite);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_transformation, "transformation(self) -> QImageIOHandler.Transformations");

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

    {
        const  ::QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
             ::QImageIOHandler::Transformations*sipRes;

            sipRes = new  ::QImageIOHandler::Transformations(sipCpp->transformation());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_transformation, doc_QImageWriter_transformation);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_setTransformation, "setTransformation(self, Union[QImageIOHandler.Transformations, QImageIOHandler.Transformation])");

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

    {
         ::QImageIOHandler::Transformations* a0;
        int a0State = 0;
         ::QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImageWriter, &sipCpp, sipType_QImageIOHandler_Transformations, &a0, &a0State))
        {
            sipCpp->setTransformation(*a0);
            sipReleaseType(a0,sipType_QImageIOHandler_Transformations,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setTransformation, doc_QImageWriter_setTransformation);

    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 (sipIsOwnedByPython(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_optimizedWrite), meth_QImageWriter_optimizedWrite, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_optimizedWrite)},
    {SIP_MLNAME_CAST(sipName_progressiveScanWrite), meth_QImageWriter_progressiveScanWrite, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_progressiveScanWrite)},
    {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_setOptimizedWrite), meth_QImageWriter_setOptimizedWrite, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setOptimizedWrite)},
    {SIP_MLNAME_CAST(sipName_setProgressiveScanWrite), meth_QImageWriter_setProgressiveScanWrite, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setProgressiveScanWrite)},
    {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_setTransformation), meth_QImageWriter_setTransformation, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setTransformation)},
    {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_transformation), meth_QImageWriter_transformation, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_transformation)},
    {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), 75},
    {sipName_UnknownError, static_cast<int>( ::QImageWriter::UnknownError), 75},
    {sipName_UnsupportedFormatError, static_cast<int>( ::QImageWriter::UnsupportedFormatError), 75},
};

PyDoc_STRVAR(doc_QImageWriter, "\1QImageWriter()\n"
    "QImageWriter(QIODevice, Union[QByteArray, bytes, bytearray])\n"
    "QImageWriter(str, format: Union[QByteArray, bytes, bytearray] = QByteArray())");


static pyqt5ClassPluginDef plugin_QImageWriter = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QImageWriter = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QImageWriter,
        {0},
        &plugin_QImageWriter
    },
    {
        sipNameNr_QImageWriter,
        {0, 0, 1},
        29, methods_QImageWriter,
        3, enummembers_QImageWriter,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QImageWriter,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimagereader.sip"
#include <qimagereader.h>
#line 144125 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 144129 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 144132 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 144135 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 144138 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 144141 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 144144 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 144147 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 144150 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 144153 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 144156 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 144159 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QImageReader_setFormat, "setFormat(self, Union[QByteArray, bytes, bytearray])");

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, "format(self) -> 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, "setDevice(self, 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, "device(self) -> 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, "setFileName(self, 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, "fileName(self) -> 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, "size(self) -> 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, "setClipRect(self, 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, "clipRect(self) -> 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, "setScaledSize(self, 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, "scaledSize(self) -> 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, "setScaledClipRect(self, 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, "scaledClipRect(self) -> 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, "canRead(self) -> 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, "read(self) -> QImage\n"
    "read(self, 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, "jumpToNextImage(self) -> 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, "jumpToImage(self, 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, "loopCount(self) -> 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, "imageCount(self) -> 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, "nextImageDelay(self) -> 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, "currentImageNumber(self) -> 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, "currentImageRect(self) -> 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, "error(self) -> 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, "errorString(self) -> 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, "imageFormat(str) -> QByteArray\n"
    "imageFormat(QIODevice) -> QByteArray\n"
    "imageFormat(self) -> 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, "supportedImageFormats() -> List[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, "textKeys(self) -> List[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, "text(self, 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, "setBackgroundColor(self, Union[QColor, Qt.GlobalColor, QGradient])");

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, "backgroundColor(self) -> 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, "supportsAnimation(self) -> 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, "setQuality(self, 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, "quality(self) -> 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, "supportsOption(self, 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, "setAutoDetectImageFormat(self, 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, "autoDetectImageFormat(self) -> 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, "setDecideFormatFromContent(self, 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, "decideFormatFromContent(self) -> 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, "supportedMimeTypes() -> List[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, "subType(self) -> 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, "supportedSubTypes(self) -> List[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;
}


PyDoc_STRVAR(doc_QImageReader_transformation, "transformation(self) -> QImageIOHandler.Transformations");

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

    {
        const  ::QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
             ::QImageIOHandler::Transformations*sipRes;

            sipRes = new  ::QImageIOHandler::Transformations(sipCpp->transformation());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_transformation, doc_QImageReader_transformation);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setAutoTransform, "setAutoTransform(self, bool)");

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

    {
        bool a0;
         ::QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QImageReader, &sipCpp, &a0))
        {
            sipCpp->setAutoTransform(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setAutoTransform, doc_QImageReader_setAutoTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_autoTransform, "autoTransform(self) -> bool");

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

    {
        const  ::QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->autoTransform();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_autoTransform, doc_QImageReader_autoTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setGamma, "setGamma(self, float)");

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

    {
        float a0;
         ::QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QImageReader, &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_QImageReader, sipName_setGamma, doc_QImageReader_setGamma);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_gamma, "gamma(self) -> float");

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

    {
        const  ::QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->gamma();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_gamma, doc_QImageReader_gamma);

    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 (sipIsOwnedByPython(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_autoTransform), meth_QImageReader_autoTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_autoTransform)},
    {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_gamma), meth_QImageReader_gamma, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_gamma)},
    {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_setAutoTransform), meth_QImageReader_setAutoTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setAutoTransform)},
    {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_setGamma), meth_QImageReader_setGamma, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setGamma)},
    {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)},
    {SIP_MLNAME_CAST(sipName_transformation), meth_QImageReader_transformation, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_transformation)}
};

static sipEnumMemberDef enummembers_QImageReader[] = {
    {sipName_DeviceError, static_cast<int>( ::QImageReader::DeviceError), 73},
    {sipName_FileNotFoundError, static_cast<int>( ::QImageReader::FileNotFoundError), 73},
    {sipName_InvalidDataError, static_cast<int>( ::QImageReader::InvalidDataError), 73},
    {sipName_UnknownError, static_cast<int>( ::QImageReader::UnknownError), 73},
    {sipName_UnsupportedFormatError, static_cast<int>( ::QImageReader::UnsupportedFormatError), 73},
};

PyDoc_STRVAR(doc_QImageReader, "\1QImageReader()\n"
    "QImageReader(QIODevice, format: Union[QByteArray, bytes, bytearray] = QByteArray())\n"
    "QImageReader(str, format: Union[QByteArray, bytes, bytearray] = QByteArray())");


static pyqt5ClassPluginDef plugin_QImageReader = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QImageReader = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QImageReader,
        {0},
        &plugin_QImageReader
    },
    {
        sipNameNr_QImageReader,
        {0, 0, 1},
        46, methods_QImageReader,
        5, enummembers_QImageReader,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QImageReader,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 145709 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 145713 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QImageIOHandler_Transformations___hash__(PyObject *);}
static long slot_QImageIOHandler_Transformations___hash__(PyObject *sipSelf)
{
     ::QImageIOHandler::Transformations *sipCpp = reinterpret_cast< ::QImageIOHandler::Transformations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImageIOHandler_Transformations));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QImageIOHandler::Transformations::Int();
#line 145731 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static int slot_QImageIOHandler_Transformations___bool__(PyObject *);}
static int slot_QImageIOHandler_Transformations___bool__(PyObject *sipSelf)
{
     ::QImageIOHandler::Transformations *sipCpp = reinterpret_cast< ::QImageIOHandler::Transformations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImageIOHandler_Transformations));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QImageIOHandler::Transformations::Int() != 0);
#line 145756 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QImageIOHandler_Transformations___ne__(PyObject *,PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QImageIOHandler::Transformations *sipCpp = reinterpret_cast< ::QImageIOHandler::Transformations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImageIOHandler_Transformations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::QImageIOHandler::Transformations* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QImageIOHandler_Transformations, &a0, &a0State))
        {
            bool sipRes = 0;

#line 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QImageIOHandler::Transformations::Int() != a0->operator QImageIOHandler::Transformations::Int());
#line 145786 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast< ::QImageIOHandler::Transformations *>(a0),sipType_QImageIOHandler_Transformations,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui, ne_slot, sipType_QImageIOHandler_Transformations, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QImageIOHandler_Transformations___eq__(PyObject *,PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QImageIOHandler::Transformations *sipCpp = reinterpret_cast< ::QImageIOHandler::Transformations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImageIOHandler_Transformations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::QImageIOHandler::Transformations* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QImageIOHandler_Transformations, &a0, &a0State))
        {
            bool sipRes = 0;

#line 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QImageIOHandler::Transformations::Int() == a0->operator QImageIOHandler::Transformations::Int());
#line 145822 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast< ::QImageIOHandler::Transformations *>(a0),sipType_QImageIOHandler_Transformations,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui, eq_slot, sipType_QImageIOHandler_Transformations, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QImageIOHandler_Transformations___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QImageIOHandler_Transformations)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::QImageIOHandler::Transformations *sipCpp = reinterpret_cast< ::QImageIOHandler::Transformations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImageIOHandler_Transformations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QImageIOHandler::Transformations(*sipCpp ^ a0);
#line 145861 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QImageIOHandler_Transformations___xor__(PyObject *,PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::QImageIOHandler::Transformations* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QImageIOHandler_Transformations, &a0, &a0State, &a1))
        {
             ::QImageIOHandler::Transformations*sipRes;

            sipRes = new  ::QImageIOHandler::Transformations((*a0 ^ a1));
            sipReleaseType(a0,sipType_QImageIOHandler_Transformations,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui, xor_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_QImageIOHandler_Transformations___ior__(PyObject *,PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QImageIOHandler_Transformations)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::QImageIOHandler::Transformations *sipCpp = reinterpret_cast< ::QImageIOHandler::Transformations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImageIOHandler_Transformations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QImageIOHandler::Transformations(*sipCpp | a0);
#line 145933 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QImageIOHandler_Transformations___or__(PyObject *,PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::QImageIOHandler::Transformations* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QImageIOHandler_Transformations, &a0, &a0State, &a1))
        {
             ::QImageIOHandler::Transformations*sipRes;

            sipRes = new  ::QImageIOHandler::Transformations((*a0 | a1));
            sipReleaseType(a0,sipType_QImageIOHandler_Transformations,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui, or_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_QImageIOHandler_Transformations___iand__(PyObject *,PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QImageIOHandler_Transformations)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

     ::QImageIOHandler::Transformations *sipCpp = reinterpret_cast< ::QImageIOHandler::Transformations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImageIOHandler_Transformations));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp-> ::QImageIOHandler::Transformations::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_QImageIOHandler_Transformations___and__(PyObject *,PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
         ::QImageIOHandler::Transformations* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QImageIOHandler_Transformations, &a0, &a0State, &a1))
        {
             ::QImageIOHandler::Transformations*sipRes;

            sipRes = new  ::QImageIOHandler::Transformations((*a0 & a1));
            sipReleaseType(a0,sipType_QImageIOHandler_Transformations,a0State);

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

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui, and_slot, NULL, sipArg0, sipArg1);
}


extern "C" {static PyObject *slot_QImageIOHandler_Transformations___invert__(PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___invert__(PyObject *sipSelf)
{
     ::QImageIOHandler::Transformations *sipCpp = reinterpret_cast< ::QImageIOHandler::Transformations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImageIOHandler_Transformations));

    if (!sipCpp)
        return 0;


    {
        {
             ::QImageIOHandler::Transformations*sipRes;

            sipRes = new  ::QImageIOHandler::Transformations(~(*sipCpp));

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

    return 0;
}


extern "C" {static PyObject *slot_QImageIOHandler_Transformations___int__(PyObject *);}
static PyObject *slot_QImageIOHandler_Transformations___int__(PyObject *sipSelf)
{
     ::QImageIOHandler::Transformations *sipCpp = reinterpret_cast< ::QImageIOHandler::Transformations *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImageIOHandler_Transformations));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


/* Call the instance's destructor. */
extern "C" {static void release_QImageIOHandler_Transformations(void *, int);}
static void release_QImageIOHandler_Transformations(void *sipCppV, int)
{
    delete reinterpret_cast< ::QImageIOHandler::Transformations *>(sipCppV);
}


extern "C" {static void assign_QImageIOHandler_Transformations(void *, SIP_SSIZE_T, const void *);}
static void assign_QImageIOHandler_Transformations(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::QImageIOHandler::Transformations *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::QImageIOHandler::Transformations *>(sipSrc);
}


extern "C" {static void *array_QImageIOHandler_Transformations(SIP_SSIZE_T);}
static void *array_QImageIOHandler_Transformations(SIP_SSIZE_T sipNrElem)
{
    return new  ::QImageIOHandler::Transformations[sipNrElem];
}


extern "C" {static void *copy_QImageIOHandler_Transformations(const void *, SIP_SSIZE_T);}
static void *copy_QImageIOHandler_Transformations(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::QImageIOHandler::Transformations(reinterpret_cast<const  ::QImageIOHandler::Transformations *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QImageIOHandler_Transformations(sipSimpleWrapper *);}
static void dealloc_QImageIOHandler_Transformations(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QImageIOHandler_Transformations(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_QImageIOHandler_Transformations(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QImageIOHandler_Transformations(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::QImageIOHandler::Transformations *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QImageIOHandler::Transformations();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QImageIOHandler::Transformations(a0);

            return sipCpp;
        }
    }

    {
        const  ::QImageIOHandler::Transformations* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QImageIOHandler_Transformations, &a0, &a0State))
        {
            sipCpp = new  ::QImageIOHandler::Transformations(*a0);
            sipReleaseType(const_cast< ::QImageIOHandler::Transformations *>(a0),sipType_QImageIOHandler_Transformations,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QImageIOHandler_Transformations(PyObject *, void **, int *, PyObject *);}
static int convertTo_QImageIOHandler_Transformations(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
     ::QImageIOHandler::Transformations **sipCppPtr = reinterpret_cast< ::QImageIOHandler::Transformations **>(sipCppPtrV);

#line 121 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QImageIOHandler::Transformations is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QImageIOHandler_Transformation)) ||
            sipCanConvertToType(sipPy, sipType_QImageIOHandler_Transformations, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QImageIOHandler_Transformation)))
{
    *sipCppPtr = new QImageIOHandler::Transformations(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QImageIOHandler::Transformations *>(sipConvertToType(sipPy, sipType_QImageIOHandler_Transformations, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 146201 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QImageIOHandler_Transformations[] = {
    {(void *)slot_QImageIOHandler_Transformations___hash__, hash_slot},
    {(void *)slot_QImageIOHandler_Transformations___bool__, bool_slot},
    {(void *)slot_QImageIOHandler_Transformations___ne__, ne_slot},
    {(void *)slot_QImageIOHandler_Transformations___eq__, eq_slot},
    {(void *)slot_QImageIOHandler_Transformations___ixor__, ixor_slot},
    {(void *)slot_QImageIOHandler_Transformations___xor__, xor_slot},
    {(void *)slot_QImageIOHandler_Transformations___ior__, ior_slot},
    {(void *)slot_QImageIOHandler_Transformations___or__, or_slot},
    {(void *)slot_QImageIOHandler_Transformations___iand__, iand_slot},
    {(void *)slot_QImageIOHandler_Transformations___and__, and_slot},
    {(void *)slot_QImageIOHandler_Transformations___invert__, invert_slot},
    {(void *)slot_QImageIOHandler_Transformations___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QImageIOHandler_Transformations, "\1QImageIOHandler.Transformations()\n"
    "QImageIOHandler.Transformations(Union[QImageIOHandler.Transformations, QImageIOHandler.Transformation])\n"
    "QImageIOHandler.Transformations(QImageIOHandler.Transformations)");


static pyqt5ClassPluginDef plugin_QImageIOHandler_Transformations = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QImageIOHandler_Transformations = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QImageIOHandler__Transformations,
        {0},
        &plugin_QImageIOHandler_Transformations
    },
    {
        sipNameNr_Transformations,
        {68, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QImageIOHandler_Transformations,
    -1,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QImageIOHandler_Transformations,
    init_type_QImageIOHandler_Transformations,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QImageIOHandler_Transformations,
    assign_QImageIOHandler_Transformations,
    array_QImageIOHandler_Transformations,
    copy_QImageIOHandler_Transformations,
    release_QImageIOHandler_Transformations,
    0,
    convertTo_QImageIOHandler_Transformations,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 146287 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 146291 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 146294 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 146297 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 146300 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 146303 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(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_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_35(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_QtGui_34(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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();

    extern bool sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_28(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QImageIOHandler::ImageOption);

    return sipVH_QtGui_33(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QImageIOHandler::ImageOption,const  ::QVariant&);

    sipVH_QtGui_32(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QImageIOHandler::ImageOption);

    return sipVH_QtGui_31(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QImage&);

    return sipVH_QtGui_30(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QImage*);

    return sipVH_QtGui_29(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;

    extern bool sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_28(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}


PyDoc_STRVAR(doc_QImageIOHandler_setDevice, "setDevice(self, 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, "device(self) -> 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, "setFormat(self, Union[QByteArray, bytes, bytearray])");

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, "format(self) -> 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, "canRead(self) -> 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, "read(self, 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, "write(self, 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 || sipIsDerivedClass((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, "option(self, QImageIOHandler.ImageOption) -> Any");

extern "C" {static PyObject *meth_QImageIOHandler_option(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_option(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "setOption(self, QImageIOHandler.ImageOption, Any)");

extern "C" {static PyObject *meth_QImageIOHandler_setOption(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_setOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((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, "supportsOption(self, 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 || sipIsDerivedClass((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, "jumpToNextImage(self) -> 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 || sipIsDerivedClass((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, "jumpToImage(self, 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 || sipIsDerivedClass((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, "loopCount(self) -> 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 || sipIsDerivedClass((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, "imageCount(self) -> 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 || sipIsDerivedClass((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, "nextImageDelay(self) -> 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 || sipIsDerivedClass((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, "currentImageNumber(self) -> 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 || sipIsDerivedClass((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, "currentImageRect(self) -> 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 || sipIsDerivedClass((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;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQImageIOHandler *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QImageIOHandler(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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), 69},
    {sipName_BackgroundColor, static_cast<int>( ::QImageIOHandler::BackgroundColor), 69},
    {sipName_ClipRect, static_cast<int>( ::QImageIOHandler::ClipRect), 69},
    {sipName_CompressionRatio, static_cast<int>( ::QImageIOHandler::CompressionRatio), 69},
    {sipName_Description, static_cast<int>( ::QImageIOHandler::Description), 69},
    {sipName_Endianness, static_cast<int>( ::QImageIOHandler::Endianness), 69},
    {sipName_Gamma, static_cast<int>( ::QImageIOHandler::Gamma), 69},
    {sipName_ImageTransformation, static_cast<int>( ::QImageIOHandler::ImageTransformation), 69},
    {sipName_IncrementalReading, static_cast<int>( ::QImageIOHandler::IncrementalReading), 69},
    {sipName_Name, static_cast<int>( ::QImageIOHandler::Name), 69},
    {sipName_OptimizedWrite, static_cast<int>( ::QImageIOHandler::OptimizedWrite), 69},
    {sipName_ProgressiveScanWrite, static_cast<int>( ::QImageIOHandler::ProgressiveScanWrite), 69},
    {sipName_Quality, static_cast<int>( ::QImageIOHandler::Quality), 69},
    {sipName_ScaledClipRect, static_cast<int>( ::QImageIOHandler::ScaledClipRect), 69},
    {sipName_ScaledSize, static_cast<int>( ::QImageIOHandler::ScaledSize), 69},
    {sipName_Size, static_cast<int>( ::QImageIOHandler::Size), 69},
    {sipName_SubType, static_cast<int>( ::QImageIOHandler::SubType), 69},
    {sipName_SupportedSubTypes, static_cast<int>( ::QImageIOHandler::SupportedSubTypes), 69},
    {sipName_TransformationFlip, static_cast<int>( ::QImageIOHandler::TransformationFlip), 70},
    {sipName_TransformationFlipAndRotate90, static_cast<int>( ::QImageIOHandler::TransformationFlipAndRotate90), 70},
    {sipName_TransformationMirror, static_cast<int>( ::QImageIOHandler::TransformationMirror), 70},
    {sipName_TransformationMirrorAndRotate90, static_cast<int>( ::QImageIOHandler::TransformationMirrorAndRotate90), 70},
    {sipName_TransformationNone, static_cast<int>( ::QImageIOHandler::TransformationNone), 70},
    {sipName_TransformationRotate180, static_cast<int>( ::QImageIOHandler::TransformationRotate180), 70},
    {sipName_TransformationRotate270, static_cast<int>( ::QImageIOHandler::TransformationRotate270), 70},
    {sipName_TransformationRotate90, static_cast<int>( ::QImageIOHandler::TransformationRotate90), 70},
    {sipName_TransformedByDefault, static_cast<int>( ::QImageIOHandler::TransformedByDefault), 69},
};

PyDoc_STRVAR(doc_QImageIOHandler, "\1QImageIOHandler()");


static pyqt5ClassPluginDef plugin_QImageIOHandler = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QImageIOHandler = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QImageIOHandler,
        {0},
        &plugin_QImageIOHandler
    },
    {
        sipNameNr_QImageIOHandler,
        {0, 0, 1},
        17, methods_QImageIOHandler,
        27, enummembers_QImageIOHandler,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QImageIOHandler,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 147218 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 147222 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 147225 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 147228 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 147231 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 147234 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixelformat.sip"
#include <qpixelformat.h>
#line 147237 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 147240 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 147243 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 147246 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 147249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 147252 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 147255 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 147258 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 147261 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 147264 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 147267 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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;
     ::QImage sipProtect_smoothScaled(int,int) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int devType() const;
     ::QPaintEngine* paintEngine() const;
    int metric( ::QPaintDevice::PaintDeviceMetric) 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()
{
    sipInstanceDestroyed(sipPySelf);
}

int sipQImage::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return  ::QImage::devType();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::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_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipQImage::metric( ::QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return  ::QImage::metric(a0);

    extern int sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipQImage::sipProtectVirt_metric(bool sipSelfWasArg, ::QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ?  ::QImage::metric(a0) : metric(a0));
}

 ::QImage sipQImage::sipProtect_smoothScaled(int a0,int a1) const
{
    return  ::QImage::smoothScaled(a0,a1);
}


PyDoc_STRVAR(doc_QImage_isNull, "isNull(self) -> 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, "devType(self) -> 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 || sipIsDerivedClass((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, "detach(self)");

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, "isDetached(self) -> 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, "copy(self, rect: QRect = QRect()) -> QImage\n"
    "copy(self, 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, "format(self) -> 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, "convertToFormat(self, QImage.Format, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.AutoColor) -> QImage\n"
    "convertToFormat(self, QImage.Format, Iterable[int], flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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, "width(self) -> 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, "height(self) -> 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, "size(self) -> 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, "rect(self) -> 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, "depth(self) -> 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, "color(self, 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, "setColor(self, 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, "allGray(self) -> 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, "isGrayscale(self) -> 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, "bits(self) -> 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, "constBits(self) -> 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, "scanLine(self, 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, "constScanLine(self, 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, "bytesPerLine(self) -> 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, "valid(self, QPoint) -> bool\n"
    "valid(self, 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, "pixelIndex(self, QPoint) -> int\n"
    "pixelIndex(self, 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, "pixel(self, QPoint) -> int\n"
    "pixel(self, 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, "setPixel(self, QPoint, int)\n"
    "setPixel(self, 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, "colorTable(self) -> List[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, "setColorTable(self, Iterable[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, "fill(self, Qt.GlobalColor)\n"
    "fill(self, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "fill(self, 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, "hasAlphaChannel(self) -> 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, "createAlphaMask(self, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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, "createHeuristicMask(self, clipTight: bool = 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, "scaled(self, int, int, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation) -> QImage\n"
    "scaled(self, QSize, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = 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, "scaledToWidth(self, int, mode: Qt.TransformationMode = 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, "scaledToHeight(self, int, mode: Qt.TransformationMode = 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, "mirrored(self, horizontal: bool = False, vertical: bool = 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, "rgbSwapped(self) -> 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, "invertPixels(self, mode: QImage.InvertMode = 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, "load(self, QIODevice, str) -> bool\n"
    "load(self, str, format: str = 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;
         ::QImage *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8s", &sipSelf, sipType_QImage, &sipCpp, sipType_QIODevice, &a0, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
        const char* a1 = 0;
         ::QImage *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|s", &sipSelf, sipType_QImage, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(*a0,a1);
            Py_END_ALLOW_THREADS
            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_QImage, sipName_load, doc_QImage_load);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_loadFromData, "loadFromData(self, bytes, format: str = None) -> bool\n"
    "loadFromData(self, Union[QByteArray, bytes, bytearray], format: str = 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;
         ::QImage *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bk|s", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(a0,(int)a1,a2);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QByteArray* a0;
        int a0State = 0;
        const char* a1 = 0;
         ::QImage *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|s", &sipSelf, sipType_QImage, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(*a0,a1);
            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_QImage, sipName_loadFromData, doc_QImage_loadFromData);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_save, "save(self, str, format: str = None, quality: int = -1) -> bool\n"
    "save(self, QIODevice, format: str = None, quality: int = -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;
        int a2 = -1;
        const  ::QImage *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|si", &sipSelf, sipType_QImage, &sipCpp, sipType_QString,&a0, &a0State, &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);

            return PyBool_FromLong(sipRes);
        }
    }

    {
         ::QIODevice* a0;
        const char* a1 = 0;
        int a2 = -1;
        const  ::QImage *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|si", &sipSelf, sipType_QImage, &sipCpp, sipType_QIODevice, &a0, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->save(a0,a1,a2);
            Py_END_ALLOW_THREADS

            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, "fromData(bytes, format: str = None) -> QImage\n"
    "fromData(Union[QByteArray, bytes, bytearray], format: str = 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;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "k|s", &a0, &a1, &a2))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage( ::QImage::fromData(a0,(int)a1,a2));

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

    {
        const  ::QByteArray* a0;
        int a0State = 0;
        const char* a1 = 0;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|s", sipType_QByteArray, &a0, &a0State, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage( ::QImage::fromData(*a0,a1));
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);

            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, "paintEngine(self) -> 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 || sipIsDerivedClass((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, "dotsPerMeterX(self) -> 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, "dotsPerMeterY(self) -> 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, "setDotsPerMeterX(self, 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, "setDotsPerMeterY(self, 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, "offset(self) -> 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, "setOffset(self, 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, "textKeys(self) -> List[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, "text(self, key: str = '') -> 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, "setText(self, 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, "metric(self, 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 || sipIsDerivedClass((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_smoothScaled, "smoothScaled(self, int, int) -> QImage");

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

    {
        int a0;
        int a1;
        const sipQImage *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
             ::QImage*sipRes;

            sipRes = new  ::QImage(sipCpp->sipProtect_smoothScaled(a0,a1));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_smoothScaled, doc_QImage_smoothScaled);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_createMaskFromColor, "createMaskFromColor(self, int, mode: Qt.MaskMode = 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, "transformed(self, QTransform, mode: Qt.TransformationMode = 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, "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, "cacheKey(self) -> 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, "colorCount(self) -> 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, "setColorCount(self, 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, "byteCount(self) -> 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, "bitPlaneCount(self) -> 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, "swap(self, 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, "devicePixelRatio(self) -> 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, "setDevicePixelRatio(self, 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, "pixelFormat(self) -> 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, "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, "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;
}


PyDoc_STRVAR(doc_QImage_pixelColor, "pixelColor(self, int, int) -> QColor\n"
    "pixelColor(self, QPoint) -> QColor");

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

    {
        int a0;
        int a1;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
             ::QColor*sipRes;

            sipRes = new  ::QColor(sipCpp->pixelColor(a0,a1));

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

    {
        const  ::QPoint* a0;
        const  ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
             ::QColor*sipRes;

            sipRes = new  ::QColor(sipCpp->pixelColor(*a0));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_pixelColor, doc_QImage_pixelColor);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setPixelColor, "setPixelColor(self, int, int, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "setPixelColor(self, QPoint, Union[QColor, Qt.GlobalColor, QGradient])");

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

    {
        int a0;
        int a1;
        const  ::QColor* a2;
        int a2State = 0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ1", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, sipType_QColor, &a2, &a2State))
        {
            sipCpp->setPixelColor(a0,a1,*a2);
            sipReleaseType(const_cast< ::QColor *>(a2),sipType_QColor,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::QPoint* a0;
        const  ::QColor* a1;
        int a1State = 0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->setPixelColor(*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_QImage, sipName_setPixelColor, doc_QImage_setPixelColor);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_reinterpretAsFormat, "reinterpretAsFormat(self, QImage.Format) -> bool");

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

    {
         ::QImage::Format a0;
         ::QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage_Format, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->reinterpretAsFormat(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_reinterpretAsFormat, doc_QImage_reinterpretAsFormat);

    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 inheritance hierarchy. */
extern "C" {static void *cast_QImage(void *, const sipTypeDef *);}
static void *cast_QImage(void *sipCppV, const sipTypeDef *targetType)
{
     ::QImage *sipCpp = reinterpret_cast< ::QImage *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQImage *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QImage(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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 92 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 150095 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|s", sipType_QString,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQImage(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            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 109 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
        if (a0->canConvert<QImage>())
            sipCpp = new sipQImage(a0->value<QImage>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 150164 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[] = {{191, 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_pixelColor), meth_QImage_pixelColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_pixelColor)},
    {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_reinterpretAsFormat), meth_QImage_reinterpretAsFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_reinterpretAsFormat)},
    {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_setPixelColor), meth_QImage_setPixelColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setPixelColor)},
    {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_smoothScaled), (PyCFunction)meth_QImage_smoothScaled, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_smoothScaled)},
    {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), 66},
    {sipName_Format_A2RGB30_Premultiplied, static_cast<int>( ::QImage::Format_A2RGB30_Premultiplied), 66},
    {sipName_Format_ARGB32, static_cast<int>( ::QImage::Format_ARGB32), 66},
    {sipName_Format_ARGB32_Premultiplied, static_cast<int>( ::QImage::Format_ARGB32_Premultiplied), 66},
    {sipName_Format_ARGB4444_Premultiplied, static_cast<int>( ::QImage::Format_ARGB4444_Premultiplied), 66},
    {sipName_Format_ARGB6666_Premultiplied, static_cast<int>( ::QImage::Format_ARGB6666_Premultiplied), 66},
    {sipName_Format_ARGB8555_Premultiplied, static_cast<int>( ::QImage::Format_ARGB8555_Premultiplied), 66},
    {sipName_Format_ARGB8565_Premultiplied, static_cast<int>( ::QImage::Format_ARGB8565_Premultiplied), 66},
    {sipName_Format_Alpha8, static_cast<int>( ::QImage::Format_Alpha8), 66},
    {sipName_Format_BGR30, static_cast<int>( ::QImage::Format_BGR30), 66},
    {sipName_Format_Grayscale8, static_cast<int>( ::QImage::Format_Grayscale8), 66},
    {sipName_Format_Indexed8, static_cast<int>( ::QImage::Format_Indexed8), 66},
    {sipName_Format_Invalid, static_cast<int>( ::QImage::Format_Invalid), 66},
    {sipName_Format_Mono, static_cast<int>( ::QImage::Format_Mono), 66},
    {sipName_Format_MonoLSB, static_cast<int>( ::QImage::Format_MonoLSB), 66},
    {sipName_Format_RGB16, static_cast<int>( ::QImage::Format_RGB16), 66},
    {sipName_Format_RGB30, static_cast<int>( ::QImage::Format_RGB30), 66},
    {sipName_Format_RGB32, static_cast<int>( ::QImage::Format_RGB32), 66},
    {sipName_Format_RGB444, static_cast<int>( ::QImage::Format_RGB444), 66},
    {sipName_Format_RGB555, static_cast<int>( ::QImage::Format_RGB555), 66},
    {sipName_Format_RGB666, static_cast<int>( ::QImage::Format_RGB666), 66},
    {sipName_Format_RGB888, static_cast<int>( ::QImage::Format_RGB888), 66},
    {sipName_Format_RGBA8888, static_cast<int>( ::QImage::Format_RGBA8888), 66},
    {sipName_Format_RGBA8888_Premultiplied, static_cast<int>( ::QImage::Format_RGBA8888_Premultiplied), 66},
    {sipName_Format_RGBX8888, static_cast<int>( ::QImage::Format_RGBX8888), 66},
    {sipName_InvertRgb, static_cast<int>( ::QImage::InvertRgb), 67},
    {sipName_InvertRgba, static_cast<int>( ::QImage::InvertRgba), 67},
};

PyDoc_STRVAR(doc_QImage, "\1QImage()\n"
    "QImage(QSize, QImage.Format)\n"
    "QImage(int, int, QImage.Format)\n"
    "QImage(bytes, int, int, QImage.Format)\n"
    "QImage(sip.voidptr, int, int, QImage.Format)\n"
    "QImage(bytes, int, int, int, QImage.Format)\n"
    "QImage(sip.voidptr, int, int, int, QImage.Format)\n"
    "QImage(List[str])\n"
    "QImage(str, format: str = None)\n"
    "QImage(QImage)\n"
    "QImage(Any)");


static pyqt5ClassPluginDef plugin_QImage = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QImage = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QImage,
        {0},
        &plugin_QImage
    },
    {
        sipNameNr_QImage,
        {0, 0, 1},
        70, methods_QImage,
        27, 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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 150378 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 150382 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(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_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipQPaintDevice::sipProtectVirt_metric(bool sipSelfWasArg, ::QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ?  ::QPaintDevice::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QPaintDevice_paintEngine, "paintEngine(self) -> 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, "width(self) -> 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, "height(self) -> 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, "widthMM(self) -> 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, "heightMM(self) -> 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, "logicalDpiX(self) -> 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, "logicalDpiY(self) -> 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, "physicalDpiX(self) -> 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, "physicalDpiY(self) -> 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, "depth(self) -> 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, "paintingActive(self) -> 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, "colorCount(self) -> 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, "devicePixelRatio(self) -> 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, "metric(self, 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 || sipIsDerivedClass((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;
}


PyDoc_STRVAR(doc_QPaintDevice_devicePixelRatioF, "devicePixelRatioF(self) -> float");

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

    {
        const  ::QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->devicePixelRatioF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_devicePixelRatioF, doc_QPaintDevice_devicePixelRatioF);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_devicePixelRatioFScale, "devicePixelRatioFScale() -> float");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::qreal sipRes;

            sipRes =  ::QPaintDevice::devicePixelRatioFScale();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_devicePixelRatioFScale, doc_QPaintDevice_devicePixelRatioFScale);

    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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQPaintDevice *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPaintDevice(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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_devicePixelRatioF), meth_QPaintDevice_devicePixelRatioF, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_devicePixelRatioF)},
    {SIP_MLNAME_CAST(sipName_devicePixelRatioFScale), meth_QPaintDevice_devicePixelRatioFScale, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_devicePixelRatioFScale)},
    {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), 192},
    {sipName_PdmDevicePixelRatio, static_cast<int>( ::QPaintDevice::PdmDevicePixelRatio), 192},
    {sipName_PdmDevicePixelRatioScaled, static_cast<int>( ::QPaintDevice::PdmDevicePixelRatioScaled), 192},
    {sipName_PdmDpiX, static_cast<int>( ::QPaintDevice::PdmDpiX), 192},
    {sipName_PdmDpiY, static_cast<int>( ::QPaintDevice::PdmDpiY), 192},
    {sipName_PdmHeight, static_cast<int>( ::QPaintDevice::PdmHeight), 192},
    {sipName_PdmHeightMM, static_cast<int>( ::QPaintDevice::PdmHeightMM), 192},
    {sipName_PdmNumColors, static_cast<int>( ::QPaintDevice::PdmNumColors), 192},
    {sipName_PdmPhysicalDpiX, static_cast<int>( ::QPaintDevice::PdmPhysicalDpiX), 192},
    {sipName_PdmPhysicalDpiY, static_cast<int>( ::QPaintDevice::PdmPhysicalDpiY), 192},
    {sipName_PdmWidth, static_cast<int>( ::QPaintDevice::PdmWidth), 192},
    {sipName_PdmWidthMM, static_cast<int>( ::QPaintDevice::PdmWidthMM), 192},
};

PyDoc_STRVAR(doc_QPaintDevice, "\1QPaintDevice()");


static pyqt5ClassPluginDef plugin_QPaintDevice = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPaintDevice = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPaintDevice,
        {0},
        &plugin_QPaintDevice
    },
    {
        sipNameNr_QPaintDevice,
        {0, 0, 1},
        16, methods_QPaintDevice,
        12, enummembers_QPaintDevice,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintDevice,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 83 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 151059 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 151063 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 151066 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 151069 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


/* Call the instance's destructor. */
extern "C" {static void release_QIconEngine_ScaledPixmapArgument(void *, int);}
static void release_QIconEngine_ScaledPixmapArgument(void *sipCppV, int)
{
    delete reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipCppV);
}


extern "C" {static void assign_QIconEngine_ScaledPixmapArgument(void *, SIP_SSIZE_T, const void *);}
static void assign_QIconEngine_ScaledPixmapArgument(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::QIconEngine::ScaledPixmapArgument *>(sipSrc);
}


extern "C" {static void *array_QIconEngine_ScaledPixmapArgument(SIP_SSIZE_T);}
static void *array_QIconEngine_ScaledPixmapArgument(SIP_SSIZE_T sipNrElem)
{
    return new  ::QIconEngine::ScaledPixmapArgument[sipNrElem];
}


extern "C" {static void *copy_QIconEngine_ScaledPixmapArgument(const void *, SIP_SSIZE_T);}
static void *copy_QIconEngine_ScaledPixmapArgument(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::QIconEngine::ScaledPixmapArgument(reinterpret_cast<const  ::QIconEngine::ScaledPixmapArgument *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QIconEngine_ScaledPixmapArgument(sipSimpleWrapper *);}
static void dealloc_QIconEngine_ScaledPixmapArgument(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QIconEngine_ScaledPixmapArgument(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_QIconEngine_ScaledPixmapArgument(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QIconEngine_ScaledPixmapArgument(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::QIconEngine::ScaledPixmapArgument *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QIconEngine::ScaledPixmapArgument();

            return sipCpp;
        }
    }

    {
        const  ::QIconEngine::ScaledPixmapArgument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QIconEngine_ScaledPixmapArgument, &a0))
        {
            sipCpp = new  ::QIconEngine::ScaledPixmapArgument(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_QIconEngine_ScaledPixmapArgument_mode(void *, PyObject *, PyObject *);}
static PyObject *varget_QIconEngine_ScaledPixmapArgument_mode(void *sipSelf, PyObject *, PyObject *)
{
     ::QIcon::Mode sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    sipVal = sipCpp->mode;

    return sipConvertFromEnum(sipVal, sipType_QIcon_Mode);
}


extern "C" {static int varset_QIconEngine_ScaledPixmapArgument_mode(void *, PyObject *, PyObject *);}
static int varset_QIconEngine_ScaledPixmapArgument_mode(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::QIcon::Mode sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    sipVal = ( ::QIcon::Mode)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->mode = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QIconEngine_ScaledPixmapArgument_pixmap(void *, PyObject *, PyObject *);}
static PyObject *varget_QIconEngine_ScaledPixmapArgument_pixmap(void *sipSelf, PyObject *, PyObject *)
{
     ::QPixmap*sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    sipVal = &sipCpp->pixmap;

    return sipConvertFromType(sipVal, sipType_QPixmap, NULL);
}


extern "C" {static int varset_QIconEngine_ScaledPixmapArgument_pixmap(void *, PyObject *, PyObject *);}
static int varset_QIconEngine_ScaledPixmapArgument_pixmap(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::QPixmap*sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    int sipIsErr = 0;

    sipVal = reinterpret_cast< ::QPixmap *>(sipForceConvertToType(sipPy,sipType_QPixmap,NULL,SIP_NOT_NONE,NULL,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->pixmap = *sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QIconEngine_ScaledPixmapArgument_scale(void *, PyObject *, PyObject *);}
static PyObject *varget_QIconEngine_ScaledPixmapArgument_scale(void *sipSelf, PyObject *, PyObject *)
{
     ::qreal sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    sipVal = sipCpp->scale;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QIconEngine_ScaledPixmapArgument_scale(void *, PyObject *, PyObject *);}
static int varset_QIconEngine_ScaledPixmapArgument_scale(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::qreal sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->scale = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QIconEngine_ScaledPixmapArgument_size(void *, PyObject *, PyObject *);}
static PyObject *varget_QIconEngine_ScaledPixmapArgument_size(void *sipSelf, PyObject *, PyObject *)
{
     ::QSize*sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    sipVal = &sipCpp->size;

    return sipConvertFromType(sipVal, sipType_QSize, NULL);
}


extern "C" {static int varset_QIconEngine_ScaledPixmapArgument_size(void *, PyObject *, PyObject *);}
static int varset_QIconEngine_ScaledPixmapArgument_size(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::QSize*sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    int sipIsErr = 0;

    sipVal = reinterpret_cast< ::QSize *>(sipForceConvertToType(sipPy,sipType_QSize,NULL,SIP_NOT_NONE,NULL,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->size = *sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QIconEngine_ScaledPixmapArgument_state(void *, PyObject *, PyObject *);}
static PyObject *varget_QIconEngine_ScaledPixmapArgument_state(void *sipSelf, PyObject *, PyObject *)
{
     ::QIcon::State sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    sipVal = sipCpp->state;

    return sipConvertFromEnum(sipVal, sipType_QIcon_State);
}


extern "C" {static int varset_QIconEngine_ScaledPixmapArgument_state(void *, PyObject *, PyObject *);}
static int varset_QIconEngine_ScaledPixmapArgument_state(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::QIcon::State sipVal;
     ::QIconEngine::ScaledPixmapArgument *sipCpp = reinterpret_cast< ::QIconEngine::ScaledPixmapArgument *>(sipSelf);

    sipVal = ( ::QIcon::State)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->state = sipVal;

    return 0;
}

sipVariableDef variables_QIconEngine_ScaledPixmapArgument[] = {
    {InstanceVariable, sipName_mode, (PyMethodDef *)varget_QIconEngine_ScaledPixmapArgument_mode, (PyMethodDef *)varset_QIconEngine_ScaledPixmapArgument_mode, NULL, NULL},
    {InstanceVariable, sipName_pixmap, (PyMethodDef *)varget_QIconEngine_ScaledPixmapArgument_pixmap, (PyMethodDef *)varset_QIconEngine_ScaledPixmapArgument_pixmap, NULL, NULL},
    {InstanceVariable, sipName_scale, (PyMethodDef *)varget_QIconEngine_ScaledPixmapArgument_scale, (PyMethodDef *)varset_QIconEngine_ScaledPixmapArgument_scale, NULL, NULL},
    {InstanceVariable, sipName_size, (PyMethodDef *)varget_QIconEngine_ScaledPixmapArgument_size, (PyMethodDef *)varset_QIconEngine_ScaledPixmapArgument_size, NULL, NULL},
    {InstanceVariable, sipName_state, (PyMethodDef *)varget_QIconEngine_ScaledPixmapArgument_state, (PyMethodDef *)varset_QIconEngine_ScaledPixmapArgument_state, NULL, NULL},
};

PyDoc_STRVAR(doc_QIconEngine_ScaledPixmapArgument, "\1QIconEngine.ScaledPixmapArgument()\n"
    "QIconEngine.ScaledPixmapArgument(QIconEngine.ScaledPixmapArgument)");


static pyqt5ClassPluginDef plugin_QIconEngine_ScaledPixmapArgument = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QIconEngine_ScaledPixmapArgument = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QIconEngine__ScaledPixmapArgument,
        {0},
        &plugin_QIconEngine_ScaledPixmapArgument
    },
    {
        sipNameNr_ScaledPixmapArgument,
        {61, 255, 0},
        0, 0,
        0, 0,
        5, variables_QIconEngine_ScaledPixmapArgument,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QIconEngine_ScaledPixmapArgument,
    -1,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QIconEngine_ScaledPixmapArgument,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QIconEngine_ScaledPixmapArgument,
    assign_QIconEngine_ScaledPixmapArgument,
    array_QIconEngine_ScaledPixmapArgument,
    copy_QIconEngine_ScaledPixmapArgument,
    release_QIconEngine_ScaledPixmapArgument,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 62 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 151362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 151366 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 151369 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 151372 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


/* 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 (sipIsOwnedByPython(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 *, PyObject *)
{
    QList< ::QSize>*sipVal;
     ::QIconEngine::AvailableSizesArgument *sipCpp = reinterpret_cast< ::QIconEngine::AvailableSizesArgument *>(sipSelf);

    sipVal = &sipCpp->sizes;

    return sipConvertFromType(sipVal, sipType_QList_0100QSize, NULL);
}


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)");


static pyqt5ClassPluginDef plugin_QIconEngine_AvailableSizesArgument = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QIconEngine_AvailableSizesArgument = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QIconEngine__AvailableSizesArgument,
        {0},
        &plugin_QIconEngine_AvailableSizesArgument
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 151604 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 151608 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 151611 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 151614 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 151617 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 151620 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 151623 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 151626 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 151629 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(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();

    extern  ::QString sipVH_QtGui_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_24(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QIcon::Mode, ::QIcon::State);

    return sipVH_QtGui_27(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDataStream&);

    return sipVH_QtGui_26(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDataStream&);

    return sipVH_QtGui_26(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_25(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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();

    extern  ::QString sipVH_QtGui_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_24(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,const  ::QSize&, ::QIcon::Mode, ::QIcon::State);

    sipVH_QtGui_23(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPixmap&, ::QIcon::Mode, ::QIcon::State);

    sipVH_QtGui_22(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QSize&, ::QIcon::Mode, ::QIcon::State);

    return sipVH_QtGui_21(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QSize&, ::QIcon::Mode, ::QIcon::State);

    return sipVH_QtGui_20(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPainter*,const  ::QRect&, ::QIcon::Mode, ::QIcon::State);

    sipVH_QtGui_19(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2, a3);
}


PyDoc_STRVAR(doc_QIconEngine_paint, "paint(self, 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, "actualSize(self, 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 || sipIsDerivedClass((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, "pixmap(self, 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 || sipIsDerivedClass((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, "addPixmap(self, 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 || sipIsDerivedClass((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, "addFile(self, 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 || sipIsDerivedClass((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, "key(self) -> 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 || sipIsDerivedClass((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, "clone(self) -> 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, "read(self, 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 || sipIsDerivedClass((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, "write(self, 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 || sipIsDerivedClass((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, "availableSizes(self, mode: QIcon.Mode = QIcon.Normal, state: QIcon.State = QIcon.Off) -> List[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 || sipIsDerivedClass((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, "iconName(self) -> 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 || sipIsDerivedClass((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;
}


PyDoc_STRVAR(doc_QIconEngine_isNull, "isNull(self) -> bool");

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

    {
        const  ::QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIconEngine, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_isNull, doc_QIconEngine_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_scaledPixmap, "scaledPixmap(self, QSize, QIcon.Mode, QIcon.State, float) -> QPixmap");

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

    {
        const  ::QSize* a0;
         ::QIcon::Mode a1;
         ::QIcon::State a2;
         ::qreal a3;
         ::QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9EEd", &sipSelf, sipType_QIconEngine, &sipCpp, sipType_QSize, &a0, sipType_QIcon_Mode, &a1, sipType_QIcon_State, &a2, &a3))
        {
             ::QPixmap*sipRes;

            sipRes = new  ::QPixmap(sipCpp->scaledPixmap(*a0,a1,a2,a3));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_scaledPixmap, doc_QIconEngine_scaledPixmap);

    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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQIconEngine *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QIconEngine(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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_isNull), meth_QIconEngine_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_isNull)},
    {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_scaledPixmap), meth_QIconEngine_scaledPixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_scaledPixmap)},
    {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},
    {sipName_IsNullHook, static_cast<int>( ::QIconEngine::IsNullHook), 63},
    {sipName_ScaledPixmapHook, static_cast<int>( ::QIconEngine::ScaledPixmapHook), 63},
};

PyDoc_STRVAR(doc_QIconEngine, "\1QIconEngine()\n"
    "QIconEngine(QIconEngine)");


static pyqt5ClassPluginDef plugin_QIconEngine = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QIconEngine = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QIconEngine,
        {0},
        &plugin_QIconEngine
    },
    {
        sipNameNr_QIconEngine,
        {0, 0, 1},
        13, methods_QIconEngine,
        4, enummembers_QIconEngine,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QIconEngine,
    -1,
    -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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 152413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 152417 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 152420 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 152423 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 152426 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 152429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 152432 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 152435 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 152438 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 152441 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 152444 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 152447 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QIcon_pixmap, "pixmap(self, QSize, mode: QIcon.Mode = QIcon.Normal, state: QIcon.State = QIcon.Off) -> QPixmap\n"
    "pixmap(self, int, int, mode: QIcon.Mode = QIcon.Normal, state: QIcon.State = QIcon.Off) -> QPixmap\n"
    "pixmap(self, int, mode: QIcon.Mode = QIcon.Normal, state: QIcon.State = QIcon.Off) -> QPixmap\n"
    "pixmap(self, QWindow, QSize, mode: QIcon.Mode = QIcon.Normal, state: QIcon.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, "actualSize(self, QSize, mode: QIcon.Mode = QIcon.Normal, state: QIcon.State = QIcon.Off) -> QSize\n"
    "actualSize(self, QWindow, QSize, mode: QIcon.Mode = QIcon.Normal, state: QIcon.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, "availableSizes(self, mode: QIcon.Mode = QIcon.Normal, state: QIcon.State = QIcon.Off) -> List[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, "paint(self, QPainter, QRect, alignment: Union[Qt.Alignment, Qt.AlignmentFlag] = Qt.AlignCenter, mode: QIcon.Mode = QIcon.Normal, state: QIcon.State = QIcon.Off)\n"
    "paint(self, QPainter, int, int, int, int, alignment: Union[Qt.Alignment, Qt.AlignmentFlag] = Qt.AlignCenter, mode: QIcon.Mode = QIcon.Normal, state: QIcon.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, "isNull(self) -> 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, "isDetached(self) -> 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, "addPixmap(self, QPixmap, mode: QIcon.Mode = QIcon.Normal, state: QIcon.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, "addFile(self, str, size: QSize = QSize(), mode: QIcon.Mode = QIcon.Normal, state: QIcon.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, "cacheKey(self) -> 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, "fromTheme(str) -> QIcon\n"
    "fromTheme(str, QIcon) -> QIcon");

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

    {
        const  ::QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QIcon*sipRes;

            sipRes = new  ::QIcon( ::QIcon::fromTheme(*a0));
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QIcon* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9", 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, "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, "themeSearchPaths() -> List[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, "setThemeSearchPaths(Iterable[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, "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, "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, "name(self) -> 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, "swap(self, 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;
}


PyDoc_STRVAR(doc_QIcon_setIsMask, "setIsMask(self, bool)");

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

    {
        bool a0;
         ::QIcon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QIcon, &sipCpp, &a0))
        {
            sipCpp->setIsMask(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_setIsMask, doc_QIcon_setIsMask);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_isMask, "isMask(self) -> bool");

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

    {
        const  ::QIcon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIcon, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isMask();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_isMask, doc_QIcon_isMask);

    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 (sipIsOwnedByPython(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 51 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
        if (a0->canConvert<QIcon>())
            sipCpp = new QIcon(a0->value<QIcon>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 153314 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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), meth_QIcon_fromTheme, METH_VARARGS, 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_isMask), meth_QIcon_isMask, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_isMask)},
    {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_setIsMask), meth_QIcon_setIsMask, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_setIsMask)},
    {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(Any)");


static pyqt5ClassPluginDef plugin_QIcon = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QIcon = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QIcon,
        {0},
        &plugin_QIcon
    },
    {
        sipNameNr_QIcon,
        {0, 0, 1},
        19, methods_QIcon,
        6, enummembers_QIcon,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QIcon,
    -1,
    -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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qguiapplication.sip"
#include <qguiapplication.h>
#line 153435 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 153439 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 153442 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 153445 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 153448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 153451 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 153454 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 153457 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qsessionmanager.sip"
#include <qsessionmanager.h>
#line 153460 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 153463 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 153466 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 153469 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qclipboard.sip"
#include <qclipboard.h>
#line 153472 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 153475 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 153478 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 153481 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 153484 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 153487 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qabstractnativeeventfilter.sip"
#include <qabstractnativeeventfilter.h>
#line 153490 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qabstracteventdispatcher.sip"
#include <qabstracteventdispatcher.h>
#line 153493 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qtranslator.sip"
#include <qtranslator.h>
#line 153496 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 153499 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qeventloop.sip"
#include <qeventloop.h>
#line 153502 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qcoreapplication.sip"
#include <qcoreapplication.h>
#line 153505 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 153508 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 153511 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 153514 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 153517 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 153520 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 153523 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 153526 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 153529 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 153532 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 153535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 153538 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 153541 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQGuiApplication::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QGuiApplication);

    return  ::QGuiApplication::metaObject();
}

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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 153857 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 153917 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "allWindows() -> object");

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, "topLevelWindows() -> object");

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, "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, "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, "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, "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, "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, "screens() -> object");

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, "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, "setOverrideCursor(Union[QCursor, Qt.CursorShape])");

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, "changeOverrideCursor(Union[QCursor, Qt.CursorShape])");

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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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, "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_, "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, "notify(self, 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 || sipIsDerivedClass((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_applicationDisplayNameChanged, "applicationDisplayNameChanged(self)");

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

    {
         ::QGuiApplication *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGuiApplication, &sipCpp))
        {
            sipCpp->applicationDisplayNameChanged();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_applicationDisplayNameChanged, doc_QGuiApplication_applicationDisplayNameChanged);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setApplicationDisplayName, "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, "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, "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, "devicePixelRatio(self) -> 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, "isSessionRestored(self) -> 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, "sessionId(self) -> 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, "sessionKey(self) -> 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, "isSavingSession(self) -> 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, "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, "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, "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, "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, "event(self, 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 || sipIsDerivedClass((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;
}


PyDoc_STRVAR(doc_QGuiApplication_isFallbackSessionManagementEnabled, "isFallbackSessionManagementEnabled() -> bool");

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

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

            sipRes =  ::QGuiApplication::isFallbackSessionManagementEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_isFallbackSessionManagementEnabled, doc_QGuiApplication_isFallbackSessionManagementEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setFallbackSessionManagementEnabled, "setFallbackSessionManagementEnabled(bool)");

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

    {
        bool a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "b", &a0))
        {
             ::QGuiApplication::setFallbackSessionManagementEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_setFallbackSessionManagementEnabled, doc_QGuiApplication_setFallbackSessionManagementEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setDesktopFileName, "setDesktopFileName(str)");

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

    {
        const  ::QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
             ::QGuiApplication::setDesktopFileName(*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_setDesktopFileName, doc_QGuiApplication_setDesktopFileName);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_desktopFileName, "desktopFileName() -> str");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::QString*sipRes;

            sipRes = new  ::QString( ::QGuiApplication::desktopFileName());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_desktopFileName, doc_QGuiApplication_desktopFileName);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QGuiApplication(void *, const sipTypeDef *);}
static void *cast_QGuiApplication(void *sipCppV, const sipTypeDef *targetType)
{
     ::QGuiApplication *sipCpp = reinterpret_cast< ::QGuiApplication *>(sipCppV);

    if (targetType == sipType_QCoreApplication)
        return static_cast< ::QCoreApplication *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


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

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_QGuiApplication(sipSimpleWrapper *);}
static void dealloc_QGuiApplication(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQGuiApplication *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QGuiApplication(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 155513 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[] = {{4, 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_applicationDisplayNameChanged), meth_QGuiApplication_applicationDisplayNameChanged, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_applicationDisplayNameChanged)},
    {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_desktopFileName), meth_QGuiApplication_desktopFileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_desktopFileName)},
    {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_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_isFallbackSessionManagementEnabled), meth_QGuiApplication_isFallbackSessionManagementEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_isFallbackSessionManagementEnabled)},
    {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_setDesktopFileName), meth_QGuiApplication_setDesktopFileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setDesktopFileName)},
    {SIP_MLNAME_CAST(sipName_setDesktopSettingsAware), meth_QGuiApplication_setDesktopSettingsAware, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setDesktopSettingsAware)},
    {SIP_MLNAME_CAST(sipName_setFallbackSessionManagementEnabled), meth_QGuiApplication_setFallbackSessionManagementEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setFallbackSessionManagementEnabled)},
    {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)}
};

PyDoc_STRVAR(doc_QGuiApplication, "\1QGuiApplication(List[str])");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QGuiApplication[] = {
    {"primaryScreenChanged(QScreen*)", "\1primaryScreenChanged(self, QScreen)", 0, 0},
    {"paletteChanged(QPalette)", "\1paletteChanged(self, QPalette)", 0, 0},
    {"layoutDirectionChanged(Qt::LayoutDirection)", "\1layoutDirectionChanged(self, Qt.LayoutDirection)", 0, 0},
    {"screenRemoved(QScreen*)", "\1screenRemoved(self, QScreen)", 0, 0},
    {"applicationStateChanged(Qt::ApplicationState)", "\1applicationStateChanged(self, Qt.ApplicationState)", 0, 0},
    {"focusWindowChanged(QWindow*)", "\1focusWindowChanged(self, QWindow)", 0, 0},
    {"saveStateRequest(QSessionManager&)", "\1saveStateRequest(self, QSessionManager)", 0, 0},
    {"commitDataRequest(QSessionManager&)", "\1commitDataRequest(self, QSessionManager)", 0, 0},
    {"focusObjectChanged(QObject*)", "\1focusObjectChanged(self, QObject)", 0, 0},
    {"lastWindowClosed()", "\1lastWindowClosed(self)", 0, 0},
    {"screenAdded(QScreen*)", "\1screenAdded(self, QScreen)", 0, 0},
    {"fontDatabaseChanged()", "\1fontDatabaseChanged(self)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QGuiApplication = {
    & ::QGuiApplication::staticMetaObject,
    0,
    signals_QGuiApplication,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QGuiApplication = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QGuiApplication,
        {0},
        &plugin_QGuiApplication
    },
    {
        sipNameNr_QGuiApplication,
        {0, 0, 1},
        57, 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
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 155683 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 155687 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QGlyphRun_GlyphRunFlags___hash__(PyObject *);}
static long slot_QGlyphRun_GlyphRunFlags___hash__(PyObject *sipSelf)
{
     ::QGlyphRun::GlyphRunFlags *sipCpp = reinterpret_cast< ::QGlyphRun::GlyphRunFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun_GlyphRunFlags));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QGlyphRun::GlyphRunFlags::Int();
#line 155705 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QGlyphRun::GlyphRunFlags::Int() != 0);
#line 155730 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QGlyphRun::GlyphRunFlags::Int() != a0->operator QGlyphRun::GlyphRunFlags::Int());
#line 155760 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QGlyphRun::GlyphRunFlags::Int() == a0->operator QGlyphRun::GlyphRunFlags::Int());
#line 155796 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QGlyphRun::GlyphRunFlags(*sipCpp ^ a0);
#line 155835 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QGlyphRun_GlyphRunFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___xor__(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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QGlyphRun::GlyphRunFlags(*sipCpp | a0);
#line 155907 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QGlyphRun_GlyphRunFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___or__(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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QGlyphRun::GlyphRunFlags();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QGlyphRun::GlyphRunFlags(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 156175 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QGlyphRun_GlyphRunFlags[] = {
    {(void *)slot_QGlyphRun_GlyphRunFlags___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___xor__, xor_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___ior__, ior_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___or__, or_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___iand__, iand_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___and__, and_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___invert__, invert_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QGlyphRun_GlyphRunFlags, "\1QGlyphRun.GlyphRunFlags()\n"
    "QGlyphRun.GlyphRunFlags(Union[QGlyphRun.GlyphRunFlags, QGlyphRun.GlyphRunFlag])\n"
    "QGlyphRun.GlyphRunFlags(QGlyphRun.GlyphRunFlags)");


static pyqt5ClassPluginDef plugin_QGlyphRun_GlyphRunFlags = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QGlyphRun_GlyphRunFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QGlyphRun__GlyphRunFlags,
        {0},
        &plugin_QGlyphRun_GlyphRunFlags
    },
    {
        sipNameNr_GlyphRunFlags,
        {46, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QGlyphRun_GlyphRunFlags,
    -1,
    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,
    0,
    convertTo_QGlyphRun_GlyphRunFlags,
    0,
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 156261 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 156265 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 156268 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 156271 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 156274 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 156277 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 156280 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QGlyphRun_rawFont, "rawFont(self) -> 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, "setRawFont(self, 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, "glyphIndexes(self) -> List[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, "setGlyphIndexes(self, Iterable[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, "positions(self) -> List[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, "setPositions(self, Iterable[Union[QPointF, QPoint]])");

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, "clear(self)");

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, "setOverline(self, 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, "overline(self) -> 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, "setUnderline(self, 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, "underline(self) -> 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, "setStrikeOut(self, 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, "strikeOut(self) -> 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, "setRightToLeft(self, 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, "isRightToLeft(self) -> 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, "setFlag(self, QGlyphRun.GlyphRunFlag, enabled: bool = 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, "setFlags(self, Union[QGlyphRun.GlyphRunFlags, QGlyphRun.GlyphRunFlag])");

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, "flags(self) -> 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, "setBoundingRect(self, 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, "boundingRect(self) -> 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, "isEmpty(self) -> 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, "swap(self, 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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QGlyphRun = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QGlyphRun = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QGlyphRun,
        {0},
        &plugin_QGlyphRun
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 1073 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 157147 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QMatrix2x2_data, "data(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(4, sipCpp->constData(), &sipRes);
#line 157169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "copyDataTo(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[4];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(4, values, &sipRes);
#line 157211 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "isIdentity(self) -> 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, "setToIdentity(self)");

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, "fill(self, 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, "transposed(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 2, 2, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 157590 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 157639 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 157715 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 157748 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[4];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 4, values)) == sipErrorNone)
            sipCpp = new QMatrix2x2(values);
#line 157822 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[float])");


static pyqt5ClassPluginDef plugin_QMatrix2x2 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMatrix2x2 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMatrix2x2,
        {0},
        &plugin_QMatrix2x2
    },
    {
        sipNameNr_QMatrix2x2,
        {0, 0, 1},
        6, methods_QMatrix2x2,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix2x2,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QMatrix2x2,
    0,
    0
};

#line 927 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 157932 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 632 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 157936 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix2x3_data, "data(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(6, sipCpp->constData(), &sipRes);
#line 157957 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "copyDataTo(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[6];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(6, values, &sipRes);
#line 157999 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "isIdentity(self) -> 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, "setToIdentity(self)");

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, "fill(self, 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, "transposed(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 2, 3, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 158378 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 158427 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 158503 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 158536 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[6];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 6, values)) == sipErrorNone)
            sipCpp = new QMatrix2x3(values);
#line 158610 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[float])");


static pyqt5ClassPluginDef plugin_QMatrix2x3 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMatrix2x3 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMatrix2x3,
        {0},
        &plugin_QMatrix2x3
    },
    {
        sipNameNr_QMatrix2x3,
        {0, 0, 1},
        6, methods_QMatrix2x3,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix2x3,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QMatrix2x3,
    0,
    0
};

#line 781 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 158720 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 179 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 158724 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix2x4_data, "data(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(8, sipCpp->constData(), &sipRes);
#line 158745 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "copyDataTo(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[8];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(8, values, &sipRes);
#line 158787 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "isIdentity(self) -> 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, "setToIdentity(self)");

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, "fill(self, 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, "transposed(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 2, 4, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 159166 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 159215 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 159291 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 159324 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[8];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 8, values)) == sipErrorNone)
            sipCpp = new QMatrix2x4(values);
#line 159398 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[float])");


static pyqt5ClassPluginDef plugin_QMatrix2x4 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMatrix2x4 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMatrix2x4,
        {0},
        &plugin_QMatrix2x4
    },
    {
        sipNameNr_QMatrix2x4,
        {0, 0, 1},
        6, methods_QMatrix2x4,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix2x4,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QMatrix2x4,
    0,
    0
};

#line 632 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 159508 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 927 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 159512 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix3x2_data, "data(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(6, sipCpp->constData(), &sipRes);
#line 159533 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "copyDataTo(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[6];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(6, values, &sipRes);
#line 159575 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "isIdentity(self) -> 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, "setToIdentity(self)");

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, "fill(self, 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, "transposed(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 3, 2, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 159954 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 160003 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 160081 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 160115 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[6];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 6, values)) == sipErrorNone)
            sipCpp = new QMatrix3x2(values);
#line 160189 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[float])");


static pyqt5ClassPluginDef plugin_QMatrix3x2 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMatrix3x2 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMatrix3x2,
        {0},
        &plugin_QMatrix3x2
    },
    {
        sipNameNr_QMatrix3x2,
        {0, 0, 1},
        6, methods_QMatrix3x2,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix3x2,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QMatrix3x2,
    0,
    0
};

#line 483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 160299 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QMatrix3x3_data, "data(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(9, sipCpp->constData(), &sipRes);
#line 160321 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "copyDataTo(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[9];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(9, values, &sipRes);
#line 160363 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "isIdentity(self) -> 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, "setToIdentity(self)");

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, "fill(self, 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, "transposed(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 3, 3, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 160742 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 160791 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 160869 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 160903 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[9];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 9, values)) == sipErrorNone)
            sipCpp = new QMatrix3x3(values);
#line 160977 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[float])");


static pyqt5ClassPluginDef plugin_QMatrix3x3 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMatrix3x3 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMatrix3x3,
        {0},
        &plugin_QMatrix3x3
    },
    {
        sipNameNr_QMatrix3x3,
        {0, 0, 1},
        6, methods_QMatrix3x3,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix3x3,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QMatrix3x3,
    0,
    0
};

#line 331 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 161087 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 161091 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix3x4_data, "data(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(12, sipCpp->constData(), &sipRes);
#line 161112 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "copyDataTo(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[12];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(12, values, &sipRes);
#line 161154 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "isIdentity(self) -> 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, "setToIdentity(self)");

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, "fill(self, 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, "transposed(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 3, 4, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 161533 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 161582 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 161662 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 161697 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[12];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 12, values)) == sipErrorNone)
            sipCpp = new QMatrix3x4(values);
#line 161771 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[float])");


static pyqt5ClassPluginDef plugin_QMatrix3x4 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMatrix3x4 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMatrix3x4,
        {0},
        &plugin_QMatrix3x4
    },
    {
        sipNameNr_QMatrix3x4,
        {0, 0, 1},
        6, methods_QMatrix3x4,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix3x4,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QMatrix3x4,
    0,
    0
};

#line 179 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 161881 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 781 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 161885 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix4x2_data, "data(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(8, sipCpp->constData(), &sipRes);
#line 161906 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "copyDataTo(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[8];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(8, values, &sipRes);
#line 161948 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "isIdentity(self) -> 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, "setToIdentity(self)");

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, "fill(self, 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, "transposed(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 4, 2, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 162327 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 162376 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 162456 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 162491 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[8];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 8, values)) == sipErrorNone)
            sipCpp = new QMatrix4x2(values);
#line 162565 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[float])");


static pyqt5ClassPluginDef plugin_QMatrix4x2 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMatrix4x2 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMatrix4x2,
        {0},
        &plugin_QMatrix4x2
    },
    {
        sipNameNr_QMatrix4x2,
        {0, 0, 1},
        6, methods_QMatrix4x2,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix4x2,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QMatrix4x2,
    0,
    0
};

#line 27 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 162675 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 331 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 162679 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix4x3_data, "data(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(12, sipCpp->constData(), &sipRes);
#line 162700 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "copyDataTo(self) -> List[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[12];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(12, values, &sipRes);
#line 162742 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "isIdentity(self) -> 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, "setToIdentity(self)");

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, "fill(self, 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, "transposed(self) -> 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 4, 3, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 163121 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 163170 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 163250 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 163285 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[12];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 12, values)) == sipErrorNone)
            sipCpp = new QMatrix4x3(values);
#line 163359 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[float])");


static pyqt5ClassPluginDef plugin_QMatrix4x3 = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMatrix4x3 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMatrix4x3,
        {0},
        &plugin_QMatrix4x3
    },
    {
        sipNameNr_QMatrix4x3,
        {0, 0, 1},
        6, methods_QMatrix4x3,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix4x3,
    -1,
    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,
    0,
    0,
    0,
    0,
    pickle_QMatrix4x3,
    0,
    0
};

#line 99 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 163469 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 163473 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 163476 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 163479 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 163482 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 163485 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 163488 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 163491 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 163494 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFontMetricsF_ascent, "ascent(self) -> 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, "descent(self) -> 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, "height(self) -> 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, "leading(self) -> 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, "lineSpacing(self) -> 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, "minLeftBearing(self) -> 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, "minRightBearing(self) -> 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, "maxWidth(self) -> 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, "xHeight(self) -> 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, "inFont(self, 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, "leftBearing(self, 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, "rightBearing(self, 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, "widthChar(self, 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, "width(self, 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, "boundingRectChar(self, 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, "boundingRect(self, str) -> QRectF\n"
    "boundingRect(self, QRectF, int, str, tabStops: int = 0, tabArray: Optional[List[int]] = 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 126 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontmetrics.sip"
        int *tabarray = qtgui_tabarray(a4);
        
        sipRes = new QRectF(sipCpp->boundingRect(*a0, a1, *a2, a3, tabarray));
        
        if (!tabarray)
            delete[] tabarray;
#line 163989 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "size(self, int, str, tabStops: int = 0, tabArray: Optional[List[int]] = 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 136 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontmetrics.sip"
        int *tabarray = qtgui_tabarray(a3);
        
        sipRes = new QSizeF(sipCpp->size(a0, *a1, a2, tabarray));
        
        if (!tabarray)
            delete[] tabarray;
#line 164037 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "underlinePos(self) -> 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, "overlinePos(self) -> 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, "strikeOutPos(self) -> 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, "lineWidth(self) -> 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, "averageCharWidth(self) -> 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, "elidedText(self, str, Qt.TextElideMode, float, flags: int = 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, "tightBoundingRect(self, 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, "inFontUcs4(self, 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, "swap(self, 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;
}


PyDoc_STRVAR(doc_QFontMetricsF_capHeight, "capHeight(self) -> float");

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

    {
        const  ::QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->capHeight();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_capHeight, doc_QFontMetricsF_capHeight);

    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);
}


/* 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 (sipIsOwnedByPython(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_capHeight), meth_QFontMetricsF_capHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_capHeight)},
    {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)");


static pyqt5ClassPluginDef plugin_QFontMetricsF = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QFontMetricsF = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QFontMetricsF,
        {0},
        &plugin_QFontMetricsF
    },
    {
        sipNameNr_QFontMetricsF,
        {0, 0, 1},
        27, methods_QFontMetricsF,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFontMetricsF,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 164588 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 164592 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 164595 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 164598 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 164601 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 164604 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 164607 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 164610 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFontMetrics_ascent, "ascent(self) -> 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, "descent(self) -> 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, "height(self) -> 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, "leading(self) -> 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, "lineSpacing(self) -> 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, "minLeftBearing(self) -> 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, "minRightBearing(self) -> 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, "maxWidth(self) -> 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, "xHeight(self) -> 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, "inFont(self, 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, "leftBearing(self, 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, "rightBearing(self, 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, "widthChar(self, 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, "width(self, str, length: int = -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, "boundingRectChar(self, 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, "boundingRect(self, str) -> QRect\n"
    "boundingRect(self, QRect, int, str, tabStops: int = 0, tabArray: Optional[List[int]] = 0) -> QRect\n"
    "boundingRect(self, int, int, int, int, int, str, tabStops: int = 0, tabArray: Optional[List[int]] = 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontmetrics.sip"
        int *tabarray = qtgui_tabarray(a4);
        
        sipRes = new QRect(sipCpp->boundingRect(*a0, a1, *a2, a3, tabarray));
        
        if (!tabarray)
            delete[] tabarray;
#line 165113 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 165154 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "size(self, int, str, tabStops: int = 0, tabArray: Optional[List[int]] = 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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontmetrics.sip"
        int *tabarray = qtgui_tabarray(a3);
        
        sipRes = new QSize(sipCpp->size(a0, *a1, a2, tabarray));
        
        if (!tabarray)
            delete[] tabarray;
#line 165202 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "underlinePos(self) -> 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, "overlinePos(self) -> 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, "strikeOutPos(self) -> 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, "lineWidth(self) -> 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, "averageCharWidth(self) -> 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, "elidedText(self, str, Qt.TextElideMode, int, flags: int = 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, "tightBoundingRect(self, 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, "inFontUcs4(self, 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, "swap(self, 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;
}


PyDoc_STRVAR(doc_QFontMetrics_capHeight, "capHeight(self) -> int");

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

    {
        const  ::QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->capHeight();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_capHeight, doc_QFontMetrics_capHeight);

    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);
}


/* 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 (sipIsOwnedByPython(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_capHeight), meth_QFontMetrics_capHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_capHeight)},
    {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)");


static pyqt5ClassPluginDef plugin_QFontMetrics = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QFontMetrics = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QFontMetrics,
        {0},
        &plugin_QFontMetrics
    },
    {
        sipNameNr_QFontMetrics,
        {0, 0, 1},
        27, methods_QFontMetrics,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFontMetrics,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 165741 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 165745 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 165748 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFontInfo_family, "family(self) -> 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, "pixelSize(self) -> 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, "pointSize(self) -> 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, "pointSizeF(self) -> 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, "italic(self) -> 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, "style(self) -> 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, "weight(self) -> 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, "bold(self) -> 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, "fixedPitch(self) -> 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, "styleHint(self) -> 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, "rawMode(self) -> 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, "exactMatch(self) -> 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, "styleName(self) -> 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, "swap(self, 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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QFontInfo = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QFontInfo = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QFontInfo,
        {0},
        &plugin_QFontInfo
    },
    {
        sipNameNr_QFontInfo,
        {0, 0, 1},
        14, methods_QFontInfo,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFontInfo,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 166273 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 166277 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 166280 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 166283 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 166286 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 166289 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 642 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 166292 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpygui_qlist.sip"
#include <qfontdatabase.h>
#line 166295 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFontDatabase_standardSizes, "standardSizes() -> List[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, "writingSystems(self) -> List[QFontDatabase.WritingSystem]\n"
    "writingSystems(self, str) -> List[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, "families(self, writingSystem: QFontDatabase.WritingSystem = QFontDatabase.Any) -> List[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, "styles(self, str) -> List[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, "pointSizes(self, str, style: str = '') -> List[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, "smoothSizes(self, str, str) -> List[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, "styleString(self, QFont) -> str\n"
    "styleString(self, 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, "font(self, 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, "isBitmapScalable(self, str, style: str = '') -> 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, "isSmoothlyScalable(self, str, style: str = '') -> 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, "isScalable(self, str, style: str = '') -> 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, "isFixedPitch(self, str, style: str = '') -> 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, "italic(self, 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, "bold(self, 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, "weight(self, 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, "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, "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, "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, "addApplicationFontFromData(Union[QByteArray, bytes, bytearray]) -> 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, "applicationFontFamilies(int) -> List[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, "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, "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, "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, "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;
}


PyDoc_STRVAR(doc_QFontDatabase_isPrivateFamily, "isPrivateFamily(self, str) -> bool");

extern "C" {static PyObject *meth_QFontDatabase_isPrivateFamily(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_isPrivateFamily(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))
        {
            bool sipRes;

            sipRes = sipCpp->isPrivateFamily(*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_QFontDatabase, sipName_isPrivateFamily, doc_QFontDatabase_isPrivateFamily);

    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 (sipIsOwnedByPython(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_isPrivateFamily), meth_QFontDatabase_isPrivateFamily, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_isPrivateFamily)},
    {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)");


static pyqt5ClassPluginDef plugin_QFontDatabase = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QFontDatabase = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QFontDatabase,
        {0},
        &plugin_QFontDatabase
    },
    {
        sipNameNr_QFontDatabase,
        {0, 0, 1},
        25, methods_QFontDatabase,
        39, enummembers_QFontDatabase,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFontDatabase,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 167335 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 167339 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 167342 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 167345 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 167348 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFont_family, "family(self) -> 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, "setFamily(self, 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, "pointSize(self) -> 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, "setPointSize(self, 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, "pointSizeF(self) -> 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, "setPointSizeF(self, 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, "pixelSize(self) -> 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, "setPixelSize(self, 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, "weight(self) -> 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, "setWeight(self, 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, "setStyle(self, 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, "style(self) -> 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, "underline(self) -> 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, "setUnderline(self, 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, "overline(self) -> 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, "setOverline(self, 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, "strikeOut(self) -> 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, "setStrikeOut(self, 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, "fixedPitch(self) -> 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, "setFixedPitch(self, 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, "kerning(self) -> 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, "setKerning(self, 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, "styleHint(self) -> 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, "styleStrategy(self) -> 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, "setStyleHint(self, QFont.StyleHint, strategy: QFont.StyleStrategy = 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, "setStyleStrategy(self, 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, "stretch(self) -> 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, "setStretch(self, 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, "rawMode(self) -> 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, "setRawMode(self, 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, "exactMatch(self) -> 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, "isCopyOf(self, 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, "setRawName(self, 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, "rawName(self) -> 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, "key(self) -> 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, "toString(self) -> 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, "fromString(self, 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, "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, "substitutes(str) -> List[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, "substitutions() -> List[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, "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, "insertSubstitutions(str, Iterable[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, "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, "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, "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, "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, "defaultFamily(self) -> 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, "lastResortFamily(self) -> 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, "lastResortFont(self) -> 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, "resolve(self, 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, "bold(self) -> 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, "setBold(self, 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, "italic(self) -> 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, "setItalic(self, 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, "letterSpacing(self) -> 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, "letterSpacingType(self) -> 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, "setLetterSpacing(self, 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, "wordSpacing(self) -> 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, "setWordSpacing(self, 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, "setCapitalization(self, 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, "capitalization(self) -> 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, "styleName(self) -> 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, "setStyleName(self, 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, "setHintingPreference(self, 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, "hintingPreference(self) -> 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, "swap(self, 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 220 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
        sipRes = qHash(*sipCpp);
#line 169266 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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);
}


/* 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 (sipIsOwnedByPython(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 116 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qfont.sip"
        if (a0->canConvert<QFont>())
            sipCpp = new QFont(a0->value<QFont>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 169485 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_AnyStretch, static_cast<int>( ::QFont::AnyStretch), 35},
    {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_ExtraBold, static_cast<int>( ::QFont::ExtraBold), 39},
    {sipName_ExtraCondensed, static_cast<int>( ::QFont::ExtraCondensed), 35},
    {sipName_ExtraExpanded, static_cast<int>( ::QFont::ExtraExpanded), 35},
    {sipName_ExtraLight, static_cast<int>( ::QFont::ExtraLight), 39},
    {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_Medium, static_cast<int>( ::QFont::Medium), 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_Thin, static_cast<int>( ::QFont::Thin), 39},
    {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, pointSize: int = -1, weight: int = -1, italic: bool = False)\n"
    "QFont(QFont, QPaintDevice)\n"
    "QFont(QFont)\n"
    "QFont(Any)");


static pyqt5ClassPluginDef plugin_QFont = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QFont = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QFont,
        {0},
        &plugin_QFont
    },
    {
        sipNameNr_QFont,
        {0, 0, 1},
        66, methods_QFont,
        59, enummembers_QFont,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFont,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 901 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 169716 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QPointingDeviceUniqueId_fromNumericId, "fromNumericId(int) -> QPointingDeviceUniqueId");

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

    {
         ::qint64 a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "n", &a0))
        {
             ::QPointingDeviceUniqueId*sipRes;

            sipRes = new  ::QPointingDeviceUniqueId( ::QPointingDeviceUniqueId::fromNumericId(a0));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPointingDeviceUniqueId, sipName_fromNumericId, doc_QPointingDeviceUniqueId_fromNumericId);

    return NULL;
}


PyDoc_STRVAR(doc_QPointingDeviceUniqueId_isValid, "isValid(self) -> bool");

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

    {
        const  ::QPointingDeviceUniqueId *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPointingDeviceUniqueId, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPointingDeviceUniqueId, sipName_isValid, doc_QPointingDeviceUniqueId_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QPointingDeviceUniqueId_numericId, "numericId(self) -> int");

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

    {
        const  ::QPointingDeviceUniqueId *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPointingDeviceUniqueId, &sipCpp))
        {
             ::qint64 sipRes;

            sipRes = sipCpp->numericId();

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPointingDeviceUniqueId, sipName_numericId, doc_QPointingDeviceUniqueId_numericId);

    return NULL;
}


extern "C" {static PyObject *slot_QPointingDeviceUniqueId___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPointingDeviceUniqueId___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QPointingDeviceUniqueId *sipCpp = reinterpret_cast< ::QPointingDeviceUniqueId *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPointingDeviceUniqueId));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
         ::QPointingDeviceUniqueId* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPointingDeviceUniqueId, &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_QPointingDeviceUniqueId, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QPointingDeviceUniqueId___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPointingDeviceUniqueId___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QPointingDeviceUniqueId *sipCpp = reinterpret_cast< ::QPointingDeviceUniqueId *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPointingDeviceUniqueId));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
         ::QPointingDeviceUniqueId* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPointingDeviceUniqueId, &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_QPointingDeviceUniqueId, sipSelf, sipArg);
}


extern "C" {static long slot_QPointingDeviceUniqueId___hash__(PyObject *);}
static long slot_QPointingDeviceUniqueId___hash__(PyObject *sipSelf)
{
     ::QPointingDeviceUniqueId *sipCpp = reinterpret_cast< ::QPointingDeviceUniqueId *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPointingDeviceUniqueId));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 911 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
        sipRes = qHash(*sipCpp);
#line 169883 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPointingDeviceUniqueId(void *, int);}
static void release_QPointingDeviceUniqueId(void *sipCppV, int)
{
    delete reinterpret_cast< ::QPointingDeviceUniqueId *>(sipCppV);
}


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


extern "C" {static void *array_QPointingDeviceUniqueId(SIP_SSIZE_T);}
static void *array_QPointingDeviceUniqueId(SIP_SSIZE_T sipNrElem)
{
    return new  ::QPointingDeviceUniqueId[sipNrElem];
}


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


extern "C" {static void dealloc_QPointingDeviceUniqueId(sipSimpleWrapper *);}
static void dealloc_QPointingDeviceUniqueId(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPointingDeviceUniqueId(sipGetAddress(sipSelf), 0);
    }
}


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QPointingDeviceUniqueId();

            return sipCpp;
        }
    }

    {
        const  ::QPointingDeviceUniqueId* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPointingDeviceUniqueId, &a0))
        {
            sipCpp = new  ::QPointingDeviceUniqueId(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPointingDeviceUniqueId[] = {
    {(void *)slot_QPointingDeviceUniqueId___eq__, eq_slot},
    {(void *)slot_QPointingDeviceUniqueId___ne__, ne_slot},
    {(void *)slot_QPointingDeviceUniqueId___hash__, hash_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPointingDeviceUniqueId[] = {
    {SIP_MLNAME_CAST(sipName_fromNumericId), meth_QPointingDeviceUniqueId_fromNumericId, METH_VARARGS, SIP_MLDOC_CAST(doc_QPointingDeviceUniqueId_fromNumericId)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QPointingDeviceUniqueId_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QPointingDeviceUniqueId_isValid)},
    {SIP_MLNAME_CAST(sipName_numericId), meth_QPointingDeviceUniqueId_numericId, METH_VARARGS, SIP_MLDOC_CAST(doc_QPointingDeviceUniqueId_numericId)}
};

PyDoc_STRVAR(doc_QPointingDeviceUniqueId, "\1QPointingDeviceUniqueId()\n"
    "QPointingDeviceUniqueId(QPointingDeviceUniqueId)");


static pyqt5ClassPluginDef plugin_QPointingDeviceUniqueId = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPointingDeviceUniqueId = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPointingDeviceUniqueId,
        {0},
        &plugin_QPointingDeviceUniqueId
    },
    {
        sipNameNr_QPointingDeviceUniqueId,
        {0, 0, 1},
        3, methods_QPointingDeviceUniqueId,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPointingDeviceUniqueId,
    -1,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPointingDeviceUniqueId,
    init_type_QPointingDeviceUniqueId,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPointingDeviceUniqueId,
    assign_QPointingDeviceUniqueId,
    array_QPointingDeviceUniqueId,
    copy_QPointingDeviceUniqueId,
    release_QPointingDeviceUniqueId,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 880 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 170040 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 170044 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


class sipQPlatformSurfaceEvent : public  ::QPlatformSurfaceEvent
{
public:
    sipQPlatformSurfaceEvent( ::QPlatformSurfaceEvent::SurfaceEventType);
    sipQPlatformSurfaceEvent(const  ::QPlatformSurfaceEvent&);
    ~sipQPlatformSurfaceEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPlatformSurfaceEvent(const sipQPlatformSurfaceEvent &);
    sipQPlatformSurfaceEvent &operator = (const sipQPlatformSurfaceEvent &);
};

sipQPlatformSurfaceEvent::sipQPlatformSurfaceEvent( ::QPlatformSurfaceEvent::SurfaceEventType a0):  ::QPlatformSurfaceEvent(a0), sipPySelf(0)
{
}

sipQPlatformSurfaceEvent::sipQPlatformSurfaceEvent(const  ::QPlatformSurfaceEvent& a0):  ::QPlatformSurfaceEvent(a0), sipPySelf(0)
{
}

sipQPlatformSurfaceEvent::~sipQPlatformSurfaceEvent()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QPlatformSurfaceEvent_surfaceEventType, "surfaceEventType(self) -> QPlatformSurfaceEvent.SurfaceEventType");

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

    {
        const  ::QPlatformSurfaceEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPlatformSurfaceEvent, &sipCpp))
        {
             ::QPlatformSurfaceEvent::SurfaceEventType sipRes;

            sipRes = sipCpp->surfaceEventType();

            return sipConvertFromEnum(sipRes,sipType_QPlatformSurfaceEvent_SurfaceEventType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPlatformSurfaceEvent, sipName_surfaceEventType, doc_QPlatformSurfaceEvent_surfaceEventType);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QPlatformSurfaceEvent(void *, const sipTypeDef *);}
static void *cast_QPlatformSurfaceEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QPlatformSurfaceEvent *sipCpp = reinterpret_cast< ::QPlatformSurfaceEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPlatformSurfaceEvent(void *, int);}
static void release_QPlatformSurfaceEvent(void *sipCppV, int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQPlatformSurfaceEvent *>(sipCppV);
    else
        delete reinterpret_cast< ::QPlatformSurfaceEvent *>(sipCppV);
}


extern "C" {static void dealloc_QPlatformSurfaceEvent(sipSimpleWrapper *);}
static void dealloc_QPlatformSurfaceEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQPlatformSurfaceEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPlatformSurfaceEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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

    {
         ::QPlatformSurfaceEvent::SurfaceEventType a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_QPlatformSurfaceEvent_SurfaceEventType, &a0))
        {
            sipCpp = new sipQPlatformSurfaceEvent(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QPlatformSurfaceEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPlatformSurfaceEvent, &a0))
        {
            sipCpp = new sipQPlatformSurfaceEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPlatformSurfaceEvent[] = {{6, 0, 1}};


static PyMethodDef methods_QPlatformSurfaceEvent[] = {
    {SIP_MLNAME_CAST(sipName_surfaceEventType), meth_QPlatformSurfaceEvent_surfaceEventType, METH_VARARGS, SIP_MLDOC_CAST(doc_QPlatformSurfaceEvent_surfaceEventType)}
};

static sipEnumMemberDef enummembers_QPlatformSurfaceEvent[] = {
    {sipName_SurfaceAboutToBeDestroyed, static_cast<int>( ::QPlatformSurfaceEvent::SurfaceAboutToBeDestroyed), 235},
    {sipName_SurfaceCreated, static_cast<int>( ::QPlatformSurfaceEvent::SurfaceCreated), 235},
};

PyDoc_STRVAR(doc_QPlatformSurfaceEvent, "\1QPlatformSurfaceEvent(QPlatformSurfaceEvent.SurfaceEventType)\n"
    "QPlatformSurfaceEvent(QPlatformSurfaceEvent)");


static pyqt5ClassPluginDef plugin_QPlatformSurfaceEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPlatformSurfaceEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPlatformSurfaceEvent,
        {0},
        &plugin_QPlatformSurfaceEvent
    },
    {
        sipNameNr_QPlatformSurfaceEvent,
        {0, 0, 1},
        1, methods_QPlatformSurfaceEvent,
        2, enummembers_QPlatformSurfaceEvent,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPlatformSurfaceEvent,
    -1,
    -1,
    supers_QPlatformSurfaceEvent,
    0,
    init_type_QPlatformSurfaceEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPlatformSurfaceEvent,
    0,
    0,
    0,
    release_QPlatformSurfaceEvent,
    cast_QPlatformSurfaceEvent,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 860 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 170253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 170257 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 170260 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 170263 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 170266 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 170269 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QNativeGestureEvent_gestureType, "gestureType(self) -> 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, "value(self) -> 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, "pos(self) -> 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, "globalPos(self) -> 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, "localPos(self) -> 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, "windowPos(self) -> 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, "screenPos(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QNativeGestureEvent(void *, const sipTypeDef *);}
static void *cast_QNativeGestureEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QNativeGestureEvent *sipCpp = reinterpret_cast< ::QNativeGestureEvent *>(sipCppV);

    if (targetType == sipType_QInputEvent)
        return static_cast< ::QInputEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQNativeGestureEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QNativeGestureEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{76, 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, Union[QPointF, QPoint], Union[QPointF, QPoint], Union[QPointF, QPoint], float, int, int)\n"
    "QNativeGestureEvent(QNativeGestureEvent)");


static pyqt5ClassPluginDef plugin_QNativeGestureEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QNativeGestureEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QNativeGestureEvent,
        {0},
        &plugin_QNativeGestureEvent
    },
    {
        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
};

#line 837 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 170662 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 170666 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 170669 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 170672 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QEnterEvent_pos, "pos(self) -> 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, "globalPos(self) -> 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, "x(self) -> 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, "y(self) -> 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, "globalX(self) -> 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, "globalY(self) -> 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, "localPos(self) -> 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, "windowPos(self) -> 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, "screenPos(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QEnterEvent(void *, const sipTypeDef *);}
static void *cast_QEnterEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QEnterEvent *sipCpp = reinterpret_cast< ::QEnterEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQEnterEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QEnterEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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(Union[QPointF, QPoint], Union[QPointF, QPoint], Union[QPointF, QPoint])\n"
    "QEnterEvent(QEnterEvent)");


static pyqt5ClassPluginDef plugin_QEnterEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QEnterEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QEnterEvent,
        {0},
        &plugin_QEnterEvent
    },
    {
        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
};

#line 813 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 171116 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 171120 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 171123 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QScrollEvent_contentPos, "contentPos(self) -> 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, "overshootDistance(self) -> 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, "scrollState(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QScrollEvent(void *, const sipTypeDef *);}
static void *cast_QScrollEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QScrollEvent *sipCpp = reinterpret_cast< ::QScrollEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQScrollEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QScrollEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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), 254},
    {sipName_ScrollStarted, static_cast<int>( ::QScrollEvent::ScrollStarted), 254},
    {sipName_ScrollUpdated, static_cast<int>( ::QScrollEvent::ScrollUpdated), 254},
};

PyDoc_STRVAR(doc_QScrollEvent, "\1QScrollEvent(Union[QPointF, QPoint], Union[QPointF, QPoint], QScrollEvent.ScrollState)\n"
    "QScrollEvent(QScrollEvent)");


static pyqt5ClassPluginDef plugin_QScrollEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QScrollEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QScrollEvent,
        {0},
        &plugin_QScrollEvent
    },
    {
        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
};

#line 795 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 171397 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 171401 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 171404 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 171407 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 171410 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QScrollPrepareEvent_startPos, "startPos(self) -> 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, "viewportSize(self) -> 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, "contentPosRange(self) -> 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, "contentPos(self) -> 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, "setViewportSize(self, 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, "setContentPosRange(self, 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, "setContentPos(self, Union[QPointF, QPoint])");

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 inheritance hierarchy. */
extern "C" {static void *cast_QScrollPrepareEvent(void *, const sipTypeDef *);}
static void *cast_QScrollPrepareEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QScrollPrepareEvent *sipCpp = reinterpret_cast< ::QScrollPrepareEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQScrollPrepareEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QScrollPrepareEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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(Union[QPointF, QPoint])\n"
    "QScrollPrepareEvent(QScrollPrepareEvent)");


static pyqt5ClassPluginDef plugin_QScrollPrepareEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QScrollPrepareEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QScrollPrepareEvent,
        {0},
        &plugin_QScrollPrepareEvent
    },
    {
        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
};

#line 783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 171792 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 171796 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 171799 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QExposeEvent_region, "region(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QExposeEvent(void *, const sipTypeDef *);}
static void *cast_QExposeEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QExposeEvent *sipCpp = reinterpret_cast< ::QExposeEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQExposeEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QExposeEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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)");


static pyqt5ClassPluginDef plugin_QExposeEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QExposeEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QExposeEvent,
        {0},
        &plugin_QExposeEvent
    },
    {
        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
};

#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 172005 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 172011 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


extern "C" {static long slot_QTouchEvent_TouchPoint_InfoFlags___hash__(PyObject *);}
static long slot_QTouchEvent_TouchPoint_InfoFlags___hash__(PyObject *sipSelf)
{
     ::QTouchEvent::TouchPoint::InfoFlags *sipCpp = reinterpret_cast< ::QTouchEvent::TouchPoint::InfoFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchEvent_TouchPoint_InfoFlags));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 116 "sip/QtCore/qglobal.sip"
        sipRes = sipCpp->operator QTouchEvent::TouchPoint::InfoFlags::Int();
#line 172029 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


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 111 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchEvent::TouchPoint::InfoFlags::Int() != 0);
#line 172054 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 106 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchEvent::TouchPoint::InfoFlags::Int() != a0->operator QTouchEvent::TouchPoint::InfoFlags::Int());
#line 172084 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 101 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchEvent::TouchPoint::InfoFlags::Int() == a0->operator QTouchEvent::TouchPoint::InfoFlags::Int());
#line 172120 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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___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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 95 "sip/QtCore/qglobal.sip"
        *sipCpp = QTouchEvent::TouchPoint::InfoFlags(*sipCpp ^ a0);
#line 172159 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_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;
        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, xor_slot, NULL, sipArg0, sipArg1);
}


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;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 89 "sip/QtCore/qglobal.sip"
        *sipCpp = QTouchEvent::TouchPoint::InfoFlags(*sipCpp | a0);
#line 172231 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_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;
        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, or_slot, NULL, sipArg0, sipArg1);
}


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;
}


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___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___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;
}


/* 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 (sipIsOwnedByPython(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;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new  ::QTouchEvent::TouchPoint::InfoFlags();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new  ::QTouchEvent::TouchPoint::InfoFlags(a0);

            return sipCpp;
        }
    }

    {
        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;
        }
    }

    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 121 "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 172499 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTouchEvent_TouchPoint_InfoFlags[] = {
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___hash__, hash_slot},
    {(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___ixor__, ixor_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___xor__, xor_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___ior__, ior_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___or__, or_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___iand__, iand_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___and__, and_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___invert__, invert_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___int__, int_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_InfoFlags, "\1QTouchEvent.TouchPoint.InfoFlags()\n"
    "QTouchEvent.TouchPoint.InfoFlags(Union[QTouchEvent.TouchPoint.InfoFlags, QTouchEvent.TouchPoint.InfoFlag])\n"
    "QTouchEvent.TouchPoint.InfoFlags(QTouchEvent.TouchPoint.InfoFlags)");


static pyqt5ClassPluginDef plugin_QTouchEvent_TouchPoint_InfoFlags = {
    0,
    1,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTouchEvent_TouchPoint_InfoFlags = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTouchEvent__TouchPoint__InfoFlags,
        {0},
        &plugin_QTouchEvent_TouchPoint_InfoFlags
    },
    {
        sipNameNr_InfoFlags,
        {348, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTouchEvent_TouchPoint_InfoFlags,
    -1,
    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,
    0,
    convertTo_QTouchEvent_TouchPoint_InfoFlags,
    0,
    0,
    0,
    0,
    0
};

#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 172587 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 172591 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 901 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 172594 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 172597 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 172600 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 172605 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 172608 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 172611 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 172614 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_id, "id(self) -> 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, "state(self) -> 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, "pos(self) -> 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, "startPos(self) -> 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, "lastPos(self) -> 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, "scenePos(self) -> 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, "startScenePos(self) -> 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, "lastScenePos(self) -> 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, "screenPos(self) -> 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, "startScreenPos(self) -> 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, "lastScreenPos(self) -> 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, "normalizedPos(self) -> 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, "startNormalizedPos(self) -> 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, "lastNormalizedPos(self) -> 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, "rect(self) -> 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, "sceneRect(self) -> 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, "screenRect(self) -> 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, "pressure(self) -> 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, "velocity(self) -> 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, "flags(self) -> 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, "rawScreenPositions(self) -> List[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;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_uniqueId, "uniqueId(self) -> QPointingDeviceUniqueId");

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

    {
        const  ::QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
             ::QPointingDeviceUniqueId*sipRes;

            sipRes = new  ::QPointingDeviceUniqueId(sipCpp->uniqueId());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_uniqueId, doc_QTouchEvent_TouchPoint_uniqueId);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_rotation, "rotation(self) -> float");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_rotation(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_rotation(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->rotation();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_rotation, doc_QTouchEvent_TouchPoint_rotation);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_ellipseDiameters, "ellipseDiameters(self) -> QSizeF");

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

    {
        const  ::QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
             ::QSizeF*sipRes;

            sipRes = new  ::QSizeF(sipCpp->ellipseDiameters());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_ellipseDiameters, doc_QTouchEvent_TouchPoint_ellipseDiameters);

    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 (sipIsOwnedByPython(sipSelf))
    {
        release_QTouchEvent_TouchPoint(sipGetAddress(sipSelf), 0);
    }
}


static PyMethodDef methods_QTouchEvent_TouchPoint[] = {
    {SIP_MLNAME_CAST(sipName_ellipseDiameters), meth_QTouchEvent_TouchPoint_ellipseDiameters, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_ellipseDiameters)},
    {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_rotation), meth_QTouchEvent_TouchPoint_rotation, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_rotation)},
    {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_uniqueId), meth_QTouchEvent_TouchPoint_uniqueId, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_uniqueId)},
    {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), 349},
    {sipName_Token, static_cast<int>( ::QTouchEvent::TouchPoint::Token), 349},
};


static pyqt5ClassPluginDef plugin_QTouchEvent_TouchPoint = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTouchEvent_TouchPoint = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTouchEvent__TouchPoint,
        {0},
        &plugin_QTouchEvent_TouchPoint
    },
    {
        sipNameNr_TouchPoint,
        {347, 255, 0},
        24, methods_QTouchEvent_TouchPoint,
        2, enummembers_QTouchEvent_TouchPoint,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 173399 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 173403 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 173406 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173409 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173412 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 173415 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 173420 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 173423 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 173426 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QTouchEvent_target, "target(self) -> 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, "touchPointStates(self) -> 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, "touchPoints(self) -> List[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, "window(self) -> 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, "device(self) -> 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, "setDevice(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QTouchEvent(void *, const sipTypeDef *);}
static void *cast_QTouchEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTouchEvent *sipCpp = reinterpret_cast< ::QTouchEvent *>(sipCppV);

    if (targetType == sipType_QInputEvent)
        return static_cast< ::QInputEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTouchEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTouchEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{76, 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, device: QTouchDevice = None, modifiers: Union[Qt.KeyboardModifiers, Qt.KeyboardModifier] = Qt.NoModifier, touchPointStates: Union[Qt.TouchPointStates, Qt.TouchPointState] = 0, touchPoints: object = QList&lt;QTouchEvent.TouchPoint&gt;())\n"
    "QTouchEvent(QTouchEvent)");


static pyqt5ClassPluginDef plugin_QTouchEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTouchEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTouchEvent,
        {0},
        &plugin_QTouchEvent
    },
    {
        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
};

#line 703 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 173799 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173803 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 173806 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QWindowStateChangeEvent_oldState, "oldState(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QWindowStateChangeEvent(void *, const sipTypeDef *);}
static void *cast_QWindowStateChangeEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QWindowStateChangeEvent *sipCpp = reinterpret_cast< ::QWindowStateChangeEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_QWindowStateChangeEvent(sipGetAddress(sipSelf), 0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QWindowStateChangeEvent[] = {{6, 0, 1}};


static PyMethodDef methods_QWindowStateChangeEvent[] = {
    {SIP_MLNAME_CAST(sipName_oldState), meth_QWindowStateChangeEvent_oldState, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindowStateChangeEvent_oldState)}
};


static pyqt5ClassPluginDef plugin_QWindowStateChangeEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QWindowStateChangeEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWindowStateChangeEvent,
        {0},
        &plugin_QWindowStateChangeEvent
    },
    {
        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
};

#line 689 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 173936 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 173940 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 173943 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QShortcutEvent_isAmbiguous, "isAmbiguous(self) -> 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, "key(self) -> 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, "shortcutId(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QShortcutEvent(void *, const sipTypeDef *);}
static void *cast_QShortcutEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QShortcutEvent *sipCpp = reinterpret_cast< ::QShortcutEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQShortcutEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QShortcutEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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(Union[QKeySequence, QKeySequence.StandardKey, str, int], int, ambiguous: bool = False)\n"
    "QShortcutEvent(QShortcutEvent)");


static pyqt5ClassPluginDef plugin_QShortcutEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QShortcutEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QShortcutEvent,
        {0},
        &plugin_QShortcutEvent
    },
    {
        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
};

#line 676 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 174215 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qfile.sip"
#include <qfile.h>
#line 174219 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 174222 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 96 "sip/QtCore/qurl.sip"
#include <qurl.h>
#line 174225 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 174228 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 174231 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFileOpenEvent_file, "file(self) -> 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, "url(self) -> 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, "openFile(self, QFile, Union[QIODevice.OpenMode, QIODevice.OpenModeFlag]) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QFileOpenEvent(void *, const sipTypeDef *);}
static void *cast_QFileOpenEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QFileOpenEvent *sipCpp = reinterpret_cast< ::QFileOpenEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_QFileOpenEvent(sipGetAddress(sipSelf), 0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QFileOpenEvent[] = {{6, 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)}
};


static pyqt5ClassPluginDef plugin_QFileOpenEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QFileOpenEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QFileOpenEvent,
        {0},
        &plugin_QFileOpenEvent
    },
    {
        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
};

#line 663 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 174423 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 174427 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QActionEvent_action, "action(self) -> 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, "before(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QActionEvent(void *, const sipTypeDef *);}
static void *cast_QActionEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QActionEvent *sipCpp = reinterpret_cast< ::QActionEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQActionEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QActionEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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, before: QAction = None)\n"
    "QActionEvent(QActionEvent)");


static pyqt5ClassPluginDef plugin_QActionEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QActionEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QActionEvent,
        {0},
        &plugin_QActionEvent
    },
    {
        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
};

#line 647 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 174668 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 174672 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 174675 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QWhatsThisClickedEvent_href, "href(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QWhatsThisClickedEvent(void *, const sipTypeDef *);}
static void *cast_QWhatsThisClickedEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QWhatsThisClickedEvent *sipCpp = reinterpret_cast< ::QWhatsThisClickedEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQWhatsThisClickedEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QWhatsThisClickedEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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)");


static pyqt5ClassPluginDef plugin_QWhatsThisClickedEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QWhatsThisClickedEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWhatsThisClickedEvent,
        {0},
        &plugin_QWhatsThisClickedEvent
    },
    {
        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
};

#line 635 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 174881 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 174885 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 174888 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QStatusTipEvent_tip, "tip(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QStatusTipEvent(void *, const sipTypeDef *);}
static void *cast_QStatusTipEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QStatusTipEvent *sipCpp = reinterpret_cast< ::QStatusTipEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQStatusTipEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QStatusTipEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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)");


static pyqt5ClassPluginDef plugin_QStatusTipEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QStatusTipEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QStatusTipEvent,
        {0},
        &plugin_QStatusTipEvent
    },
    {
        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
};

#line 618 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 175094 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 175098 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 175101 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QHelpEvent_x, "x(self) -> 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, "y(self) -> 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, "globalX(self) -> 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, "globalY(self) -> 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, "pos(self) -> 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, "globalPos(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QHelpEvent(void *, const sipTypeDef *);}
static void *cast_QHelpEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QHelpEvent *sipCpp = reinterpret_cast< ::QHelpEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQHelpEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QHelpEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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)");


static pyqt5ClassPluginDef plugin_QHelpEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QHelpEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QHelpEvent,
        {0},
        &plugin_QHelpEvent
    },
    {
        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
};

#line 607 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 175452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 175456 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QDragLeaveEvent(void *, const sipTypeDef *);}
static void *cast_QDragLeaveEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QDragLeaveEvent *sipCpp = reinterpret_cast< ::QDragLeaveEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQDragLeaveEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QDragLeaveEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 0, 1}};

PyDoc_STRVAR(doc_QDragLeaveEvent, "\1QDragLeaveEvent()\n"
    "QDragLeaveEvent(QDragLeaveEvent)");


static pyqt5ClassPluginDef plugin_QDragLeaveEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QDragLeaveEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QDragLeaveEvent,
        {0},
        &plugin_QDragLeaveEvent
    },
    {
        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
};

#line 596 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 175646 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 175650 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175653 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 175656 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175659 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175662 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 175665 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 175668 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175671 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 175674 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 175677 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QDragEnterEvent(void *, const sipTypeDef *);}
static void *cast_QDragEnterEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QDragEnterEvent *sipCpp = reinterpret_cast< ::QDragEnterEvent *>(sipCppV);

    if (targetType == sipType_QDragMoveEvent)
        return static_cast< ::QDragMoveEvent *>(sipCpp);

    if (targetType == sipType_QDropEvent)
        return static_cast< ::QDropEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQDragEnterEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QDragEnterEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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, Union[Qt.DropActions, Qt.DropAction], QMimeData, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier])\n"
    "QDragEnterEvent(QDragEnterEvent)");


static pyqt5ClassPluginDef plugin_QDragEnterEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QDragEnterEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QDragEnterEvent,
        {0},
        &plugin_QDragEnterEvent
    },
    {
        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
};

#line 580 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 175864 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 175868 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175871 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 175874 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175877 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175880 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 175883 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 175886 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 175889 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175892 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 175895 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QDragMoveEvent_answerRect, "answerRect(self) -> 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, "accept(self)\n"
    "accept(self, 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, "ignore(self)\n"
    "ignore(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QDragMoveEvent(void *, const sipTypeDef *);}
static void *cast_QDragMoveEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QDragMoveEvent *sipCpp = reinterpret_cast< ::QDragMoveEvent *>(sipCppV);

    if (targetType == sipType_QDropEvent)
        return static_cast< ::QDropEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQDragMoveEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QDragMoveEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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, Union[Qt.DropActions, Qt.DropAction], QMimeData, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], type: QEvent.Type = QEvent.DragMove)\n"
    "QDragMoveEvent(QDragMoveEvent)");


static pyqt5ClassPluginDef plugin_QDragMoveEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QDragMoveEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QDragMoveEvent,
        {0},
        &plugin_QDragMoveEvent
    },
    {
        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
};

#line 558 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 176208 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 176212 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 176215 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 176218 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 176221 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 176224 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 176227 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 176230 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 176233 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 176236 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QDropEvent_pos, "pos(self) -> 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, "posF(self) -> 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, "mouseButtons(self) -> 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, "keyboardModifiers(self) -> 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, "possibleActions(self) -> 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, "proposedAction(self) -> 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, "acceptProposedAction(self)");

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, "dropAction(self) -> 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, "setDropAction(self, 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, "source(self) -> 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, "mimeData(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QDropEvent(void *, const sipTypeDef *);}
static void *cast_QDropEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QDropEvent *sipCpp = reinterpret_cast< ::QDropEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQDropEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QDropEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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(Union[QPointF, QPoint], Union[Qt.DropActions, Qt.DropAction], QMimeData, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], type: QEvent.Type = QEvent.Drop)\n"
    "QDropEvent(QDropEvent)");


static pyqt5ClassPluginDef plugin_QDropEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QDropEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QDropEvent,
        {0},
        &plugin_QDropEvent
    },
    {
        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
};

#line 544 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 176751 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 176755 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 176758 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 176761 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 176764 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QInputMethodQueryEvent_queries, "queries(self) -> 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, "setValue(self, Qt.InputMethodQuery, Any)");

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, "value(self, Qt.InputMethodQuery) -> Any");

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 inheritance hierarchy. */
extern "C" {static void *cast_QInputMethodQueryEvent(void *, const sipTypeDef *);}
static void *cast_QInputMethodQueryEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QInputMethodQueryEvent *sipCpp = reinterpret_cast< ::QInputMethodQueryEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQInputMethodQueryEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QInputMethodQueryEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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(Union[Qt.InputMethodQueries, Qt.InputMethodQuery])\n"
    "QInputMethodQueryEvent(QInputMethodQueryEvent)");


static pyqt5ClassPluginDef plugin_QInputMethodQueryEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QInputMethodQueryEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QInputMethodQueryEvent,
        {0},
        &plugin_QInputMethodQueryEvent
    },
    {
        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
};

#line 497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 513 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 177034 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 177038 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 177041 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


/* 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 (sipIsOwnedByPython(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;
        }
    }

    {
         ::QInputMethodEvent::AttributeType a0;
        int a1;
        int a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "Eii", sipType_QInputMethodEvent_AttributeType, &a0, &a1, &a2))
        {
            sipCpp = new  ::QInputMethodEvent::Attribute(a0,a1,a2);

            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 *, PyObject *)
{
     ::QVariant*sipVal;
     ::QInputMethodEvent::Attribute *sipCpp = reinterpret_cast< ::QInputMethodEvent::Attribute *>(sipSelf);

    sipVal = &sipCpp->value;

    return sipConvertFromType(sipVal, sipType_QVariant, NULL);
}


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, Any)\n"
    "QInputMethodEvent.Attribute(QInputMethodEvent.AttributeType, int, int)\n"
    "QInputMethodEvent.Attribute(QInputMethodEvent.Attribute)");


static pyqt5ClassPluginDef plugin_QInputMethodEvent_Attribute = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QInputMethodEvent_Attribute = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QInputMethodEvent__Attribute,
        {0},
        &plugin_QInputMethodEvent_Attribute
    },
    {
        sipNameNr_Attribute,
        {79, 255, 0},
        0, 0,
        0, 0,
        4, variables_QInputMethodEvent_Attribute,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QInputMethodEvent_Attribute,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 177303 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 177307 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 177310 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 513 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 177315 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 177318 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QInputMethodEvent_setCommitString, "setCommitString(self, str, from_: int = 0, length: int = 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, "attributes(self) -> List[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, "preeditString(self) -> 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, "commitString(self) -> 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, "replacementStart(self) -> 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, "replacementLength(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QInputMethodEvent(void *, const sipTypeDef *);}
static void *cast_QInputMethodEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QInputMethodEvent *sipCpp = reinterpret_cast< ::QInputMethodEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQInputMethodEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QInputMethodEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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), 81},
    {sipName_Language, static_cast<int>( ::QInputMethodEvent::Language), 81},
    {sipName_Ruby, static_cast<int>( ::QInputMethodEvent::Ruby), 81},
    {sipName_Selection, static_cast<int>( ::QInputMethodEvent::Selection), 81},
    {sipName_TextFormat, static_cast<int>( ::QInputMethodEvent::TextFormat), 81},
};

PyDoc_STRVAR(doc_QInputMethodEvent, "\1QInputMethodEvent()\n"
    "QInputMethodEvent(str, object)\n"
    "QInputMethodEvent(QInputMethodEvent)");


static pyqt5ClassPluginDef plugin_QInputMethodEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QInputMethodEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QInputMethodEvent,
        {0},
        &plugin_QInputMethodEvent
    },
    {
        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
};

#line 470 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 177728 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 177732 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 177735 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 177738 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QContextMenuEvent_x, "x(self) -> 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, "y(self) -> 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, "globalX(self) -> 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, "globalY(self) -> 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, "pos(self) -> 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, "globalPos(self) -> 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, "reason(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QContextMenuEvent(void *, const sipTypeDef *);}
static void *cast_QContextMenuEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QContextMenuEvent *sipCpp = reinterpret_cast< ::QContextMenuEvent *>(sipCppV);

    if (targetType == sipType_QInputEvent)
        return static_cast< ::QInputEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQContextMenuEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QContextMenuEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{76, 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, Union[Qt.KeyboardModifiers, Qt.KeyboardModifier])\n"
    "QContextMenuEvent(QContextMenuEvent.Reason, QPoint, QPoint)\n"
    "QContextMenuEvent(QContextMenuEvent.Reason, QPoint)\n"
    "QContextMenuEvent(QContextMenuEvent)");


static pyqt5ClassPluginDef plugin_QContextMenuEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QContextMenuEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QContextMenuEvent,
        {0},
        &plugin_QContextMenuEvent
    },
    {
        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
};

#line 459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 178171 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 178175 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QHideEvent(void *, const sipTypeDef *);}
static void *cast_QHideEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QHideEvent *sipCpp = reinterpret_cast< ::QHideEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQHideEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QHideEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 0, 1}};

PyDoc_STRVAR(doc_QHideEvent, "\1QHideEvent()\n"
    "QHideEvent(QHideEvent)");


static pyqt5ClassPluginDef plugin_QHideEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QHideEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QHideEvent,
        {0},
        &plugin_QHideEvent
    },
    {
        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
};

#line 448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 178365 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 178369 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QShowEvent(void *, const sipTypeDef *);}
static void *cast_QShowEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QShowEvent *sipCpp = reinterpret_cast< ::QShowEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQShowEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QShowEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 0, 1}};

PyDoc_STRVAR(doc_QShowEvent, "\1QShowEvent()\n"
    "QShowEvent(QShowEvent)");


static pyqt5ClassPluginDef plugin_QShowEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QShowEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QShowEvent,
        {0},
        &plugin_QShowEvent
    },
    {
        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
};

#line 437 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 178559 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 178563 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QIconDragEvent(void *, const sipTypeDef *);}
static void *cast_QIconDragEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QIconDragEvent *sipCpp = reinterpret_cast< ::QIconDragEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQIconDragEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QIconDragEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 0, 1}};

PyDoc_STRVAR(doc_QIconDragEvent, "\1QIconDragEvent()\n"
    "QIconDragEvent(QIconDragEvent)");


static pyqt5ClassPluginDef plugin_QIconDragEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QIconDragEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QIconDragEvent,
        {0},
        &plugin_QIconDragEvent
    },
    {
        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
};

#line 426 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 178753 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 178757 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QCloseEvent(void *, const sipTypeDef *);}
static void *cast_QCloseEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QCloseEvent *sipCpp = reinterpret_cast< ::QCloseEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQCloseEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QCloseEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 0, 1}};

PyDoc_STRVAR(doc_QCloseEvent, "\1QCloseEvent()\n"
    "QCloseEvent(QCloseEvent)");


static pyqt5ClassPluginDef plugin_QCloseEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QCloseEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QCloseEvent,
        {0},
        &plugin_QCloseEvent
    },
    {
        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
};

#line 413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 178947 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 178951 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 178954 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QResizeEvent_size, "size(self) -> 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, "oldSize(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QResizeEvent(void *, const sipTypeDef *);}
static void *cast_QResizeEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QResizeEvent *sipCpp = reinterpret_cast< ::QResizeEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQResizeEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QResizeEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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)");


static pyqt5ClassPluginDef plugin_QResizeEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QResizeEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QResizeEvent,
        {0},
        &plugin_QResizeEvent
    },
    {
        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
};

#line 400 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 179188 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 179192 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 179195 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QMoveEvent_pos, "pos(self) -> 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, "oldPos(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QMoveEvent(void *, const sipTypeDef *);}
static void *cast_QMoveEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QMoveEvent *sipCpp = reinterpret_cast< ::QMoveEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQMoveEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QMoveEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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)");


static pyqt5ClassPluginDef plugin_QMoveEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMoveEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMoveEvent,
        {0},
        &plugin_QMoveEvent
    },
    {
        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
};

#line 386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 179429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 179433 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 179436 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 179439 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QPaintEvent_rect, "rect(self) -> 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, "region(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QPaintEvent(void *, const sipTypeDef *);}
static void *cast_QPaintEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QPaintEvent *sipCpp = reinterpret_cast< ::QPaintEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQPaintEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPaintEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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)");


static pyqt5ClassPluginDef plugin_QPaintEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPaintEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPaintEvent,
        {0},
        &plugin_QPaintEvent
    },
    {
        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
};

#line 372 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 179691 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 179695 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 179698 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QFocusEvent_gotFocus, "gotFocus(self) -> 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, "lostFocus(self) -> 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, "reason(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QFocusEvent(void *, const sipTypeDef *);}
static void *cast_QFocusEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QFocusEvent *sipCpp = reinterpret_cast< ::QFocusEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQFocusEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QFocusEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{6, 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, reason: Qt.FocusReason = Qt.OtherFocusReason)\n"
    "QFocusEvent(QFocusEvent)");


static pyqt5ClassPluginDef plugin_QFocusEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QFocusEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QFocusEvent,
        {0},
        &plugin_QFocusEvent
    },
    {
        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
};

#line 351 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 179966 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 179970 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 179973 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 179976 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 179979 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QKeyEvent_key, "key(self) -> 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, "modifiers(self) -> 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, "text(self) -> 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, "isAutoRepeat(self) -> 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, "count(self) -> 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, "matches(self, 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, "nativeModifiers(self) -> 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, "nativeScanCode(self) -> 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, "nativeVirtualKey(self) -> 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 180348 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QKeyEvent(void *, const sipTypeDef *);}
static void *cast_QKeyEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QKeyEvent *sipCpp = reinterpret_cast< ::QKeyEvent *>(sipCppV);

    if (targetType == sipType_QInputEvent)
        return static_cast< ::QInputEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQKeyEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QKeyEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{76, 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, Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], int, int, int, text: str = '', autorep: bool = False, count: int = 1)\n"
    "QKeyEvent(QEvent.Type, int, Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], text: str = '', autorep: bool = False, count: int = 1)\n"
    "QKeyEvent(QKeyEvent)");


static pyqt5ClassPluginDef plugin_QKeyEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QKeyEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QKeyEvent,
        {0},
        &plugin_QKeyEvent
    },
    {
        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
};

#line 293 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 180580 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 180584 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 180587 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 180590 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 180593 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 180596 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 180599 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QTabletEvent_pos, "pos(self) -> 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, "globalPos(self) -> 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, "x(self) -> 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, "y(self) -> 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, "globalX(self) -> 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, "globalY(self) -> 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, "hiResGlobalX(self) -> 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, "hiResGlobalY(self) -> 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, "device(self) -> 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, "pointerType(self) -> 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, "uniqueId(self) -> 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, "pressure(self) -> 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, "z(self) -> 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, "tangentialPressure(self) -> 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, "rotation(self) -> 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, "xTilt(self) -> 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, "yTilt(self) -> 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, "posF(self) -> 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, "globalPosF(self) -> 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, "button(self) -> 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, "buttons(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QTabletEvent(void *, const sipTypeDef *);}
static void *cast_QTabletEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QTabletEvent *sipCpp = reinterpret_cast< ::QTabletEvent *>(sipCppV);

    if (targetType == sipType_QInputEvent)
        return static_cast< ::QInputEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTabletEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTabletEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{76, 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), 280},
    {sipName_Cursor, static_cast<int>( ::QTabletEvent::Cursor), 279},
    {sipName_Eraser, static_cast<int>( ::QTabletEvent::Eraser), 279},
    {sipName_FourDMouse, static_cast<int>( ::QTabletEvent::FourDMouse), 280},
    {sipName_NoDevice, static_cast<int>( ::QTabletEvent::NoDevice), 280},
    {sipName_Pen, static_cast<int>( ::QTabletEvent::Pen), 279},
    {sipName_Puck, static_cast<int>( ::QTabletEvent::Puck), 280},
    {sipName_RotationStylus, static_cast<int>( ::QTabletEvent::RotationStylus), 280},
    {sipName_Stylus, static_cast<int>( ::QTabletEvent::Stylus), 280},
    {sipName_UnknownPointer, static_cast<int>( ::QTabletEvent::UnknownPointer), 279},
    {sipName_XFreeEraser, static_cast<int>( ::QTabletEvent::XFreeEraser), 280},
};

PyDoc_STRVAR(doc_QTabletEvent, "\1QTabletEvent(QEvent.Type, Union[QPointF, QPoint], Union[QPointF, QPoint], int, int, float, int, int, float, float, int, Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], int, Qt.MouseButton, Union[Qt.MouseButtons, Qt.MouseButton])\n"
    "QTabletEvent(QEvent.Type, Union[QPointF, QPoint], Union[QPointF, QPoint], int, int, float, int, int, float, float, int, Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], int)\n"
    "QTabletEvent(QTabletEvent)");


static pyqt5ClassPluginDef plugin_QTabletEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QTabletEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTabletEvent,
        {0},
        &plugin_QTabletEvent
    },
    {
        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
};

#line 253 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 181459 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 181463 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 181466 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 181469 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 181472 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 181475 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 181478 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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  ::QPointF&,const  ::QPointF&, ::QPoint, ::QPoint,int, ::Qt::Orientation, ::Qt::MouseButtons, ::Qt::KeyboardModifiers, ::Qt::ScrollPhase, ::Qt::MouseEventSource);
    sipQWheelEvent(const  ::QPointF&,const  ::QPointF&, ::QPoint, ::QPoint,int, ::Qt::Orientation, ::Qt::MouseButtons, ::Qt::KeyboardModifiers, ::Qt::ScrollPhase, ::Qt::MouseEventSource,bool);
    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  ::QPointF& a0,const  ::QPointF& a1, ::QPoint a2, ::QPoint a3,int a4, ::Qt::Orientation a5, ::Qt::MouseButtons a6, ::Qt::KeyboardModifiers a7, ::Qt::ScrollPhase a8, ::Qt::MouseEventSource a9):  ::QWheelEvent(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9), 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, ::Qt::MouseEventSource a9,bool a10):  ::QWheelEvent(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10), sipPySelf(0)
{
}

sipQWheelEvent::sipQWheelEvent(const  ::QWheelEvent& a0):  ::QWheelEvent(a0), sipPySelf(0)
{
}

sipQWheelEvent::~sipQWheelEvent()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QWheelEvent_pos, "pos(self) -> 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, "globalPos(self) -> 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, "x(self) -> 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, "y(self) -> 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, "globalX(self) -> 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, "globalY(self) -> 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, "buttons(self) -> 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, "pixelDelta(self) -> 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, "angleDelta(self) -> 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, "posF(self) -> 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, "globalPosF(self) -> 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, "phase(self) -> 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;
}


PyDoc_STRVAR(doc_QWheelEvent_source, "source(self) -> Qt.MouseEventSource");

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

    {
        const  ::QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &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_QWheelEvent, sipName_source, doc_QWheelEvent_source);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_inverted, "inverted(self) -> bool");

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

    {
        const  ::QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->inverted();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_inverted, doc_QWheelEvent_inverted);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QWheelEvent(void *, const sipTypeDef *);}
static void *cast_QWheelEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QWheelEvent *sipCpp = reinterpret_cast< ::QWheelEvent *>(sipCppV);

    if (targetType == sipType_QInputEvent)
        return static_cast< ::QInputEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQWheelEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QWheelEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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  ::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;
         ::Qt::MouseEventSource a9;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J9J9iEJ1J1EE", 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, sipType_Qt_MouseEventSource, &a9))
        {
            sipCpp = new sipQWheelEvent(*a0,*a1,*a2,*a3,a4,a5,*a6,*a7,a8,a9);
            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;
         ::Qt::MouseEventSource a9;
        bool a10;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J9J9iEJ1J1EEb", 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, sipType_Qt_MouseEventSource, &a9, &a10))
        {
            sipCpp = new sipQWheelEvent(*a0,*a1,*a2,*a3,a4,a5,*a6,*a7,a8,a9,a10);
            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[] = {{76, 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_inverted), meth_QWheelEvent_inverted, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_inverted)},
    {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_source), meth_QWheelEvent_source, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_source)},
    {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(Union[QPointF, QPoint], Union[QPointF, QPoint], QPoint, QPoint, int, Qt.Orientation, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier])\n"
    "QWheelEvent(Union[QPointF, QPoint], Union[QPointF, QPoint], QPoint, QPoint, int, Qt.Orientation, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], Qt.ScrollPhase)\n"
    "QWheelEvent(Union[QPointF, QPoint], Union[QPointF, QPoint], QPoint, QPoint, int, Qt.Orientation, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], Qt.ScrollPhase, Qt.MouseEventSource)\n"
    "QWheelEvent(Union[QPointF, QPoint], Union[QPointF, QPoint], QPoint, QPoint, int, Qt.Orientation, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], Qt.ScrollPhase, Qt.MouseEventSource, bool)\n"
    "QWheelEvent(QWheelEvent)");


static pyqt5ClassPluginDef plugin_QWheelEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QWheelEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWheelEvent,
        {0},
        &plugin_QWheelEvent
    },
    {
        sipNameNr_QWheelEvent,
        {0, 0, 1},
        14, 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
};

#line 238 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 182185 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 182189 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 182192 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 182195 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 182198 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QHoverEvent_pos, "pos(self) -> 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, "oldPos(self) -> 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, "posF(self) -> 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, "oldPosF(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QHoverEvent(void *, const sipTypeDef *);}
static void *cast_QHoverEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QHoverEvent *sipCpp = reinterpret_cast< ::QHoverEvent *>(sipCppV);

    if (targetType == sipType_QInputEvent)
        return static_cast< ::QInputEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQHoverEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QHoverEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{76, 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, Union[QPointF, QPoint], Union[QPointF, QPoint], modifiers: Union[Qt.KeyboardModifiers, Qt.KeyboardModifier] = Qt.NoModifier)\n"
    "QHoverEvent(QHoverEvent)");


static pyqt5ClassPluginDef plugin_QHoverEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QHoverEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QHoverEvent,
        {0},
        &plugin_QHoverEvent
    },
    {
        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
};

#line 205 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 182509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 182513 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 182516 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 182519 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 182522 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 182525 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 182528 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 182531 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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( ::QEvent::Type,const  ::QPointF&,const  ::QPointF&,const  ::QPointF&, ::Qt::MouseButton, ::Qt::MouseButtons, ::Qt::KeyboardModifiers, ::Qt::MouseEventSource);
    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( ::QEvent::Type a0,const  ::QPointF& a1,const  ::QPointF& a2,const  ::QPointF& a3, ::Qt::MouseButton a4, ::Qt::MouseButtons a5, ::Qt::KeyboardModifiers a6, ::Qt::MouseEventSource a7):  ::QMouseEvent(a0,a1,a2,a3,a4,a5,a6,a7), sipPySelf(0)
{
}

sipQMouseEvent::sipQMouseEvent(const  ::QMouseEvent& a0):  ::QMouseEvent(a0), sipPySelf(0)
{
}

sipQMouseEvent::~sipQMouseEvent()
{
    sipInstanceDestroyed(sipPySelf);
}


PyDoc_STRVAR(doc_QMouseEvent_pos, "pos(self) -> 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, "globalPos(self) -> 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, "x(self) -> 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, "y(self) -> 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, "globalX(self) -> 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, "globalY(self) -> 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, "button(self) -> 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, "buttons(self) -> 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, "localPos(self) -> 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, "windowPos(self) -> 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, "screenPos(self) -> 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, "source(self) -> 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, "flags(self) -> 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 inheritance hierarchy. */
extern "C" {static void *cast_QMouseEvent(void *, const sipTypeDef *);}
static void *cast_QMouseEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QMouseEvent *sipCpp = reinterpret_cast< ::QMouseEvent *>(sipCppV);

    if (targetType == sipType_QInputEvent)
        return static_cast< ::QInputEvent *>(sipCpp);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQMouseEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QMouseEvent(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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;
        }
    }

    {
         ::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;
         ::Qt::MouseEventSource a7;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ1J1J1EJ1J1E", 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, sipType_Qt_MouseEventSource, &a7))
        {
            sipCpp = new sipQMouseEvent(a0,*a1,*a2,*a3,a4,*a5,*a6,a7);
            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[] = {{76, 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, Union[QPointF, QPoint], Qt.MouseButton, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier])\n"
    "QMouseEvent(QEvent.Type, Union[QPointF, QPoint], Union[QPointF, QPoint], Qt.MouseButton, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier])\n"
    "QMouseEvent(QEvent.Type, Union[QPointF, QPoint], Union[QPointF, QPoint], Union[QPointF, QPoint], Qt.MouseButton, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier])\n"
    "QMouseEvent(QEvent.Type, Union[QPointF, QPoint], Union[QPointF, QPoint], Union[QPointF, QPoint], Qt.MouseButton, Union[Qt.MouseButtons, Qt.MouseButton], Union[Qt.KeyboardModifiers, Qt.KeyboardModifier], Qt.MouseEventSource)\n"
    "QMouseEvent(QMouseEvent)");


static pyqt5ClassPluginDef plugin_QMouseEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QMouseEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QMouseEvent,
        {0},
        &plugin_QMouseEvent
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 183199 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 183203 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 183206 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QInputEvent_modifiers, "modifiers(self) -> 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, "timestamp(self) -> 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, "setTimestamp(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QInputEvent(void *, const sipTypeDef *);}
static void *cast_QInputEvent(void *sipCppV, const sipTypeDef *targetType)
{
     ::QInputEvent *sipCpp = reinterpret_cast< ::QInputEvent *>(sipCppV);

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(sipSelf))
    {
        release_QInputEvent(sipGetAddress(sipSelf), 0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QInputEvent[] = {{6, 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)}
};


static pyqt5ClassPluginDef plugin_QInputEvent = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QInputEvent = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QInputEvent,
        {0},
        &plugin_QInputEvent
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qdrag.sip"
#include <qdrag.h>
#line 183394 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 183398 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 183401 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 183404 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 183407 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 183410 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 183413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 183416 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 183419 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 183422 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 183425 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 183428 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 183431 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 183434 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 183437 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 183440 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 183443 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 183446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 183449 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 183452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 183455 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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:
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQDrag::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QDrag);

    return  ::QDrag::metaObject();
}

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));
}

bool sipQDrag::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QDrag::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQDrag::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QDrag::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQDrag::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QDrag::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQDrag::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QDrag::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQDrag::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QDrag::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQDrag::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QDrag::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 183749 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 183809 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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_, "exec_(self, supportedActions: Union[Qt.DropActions, Qt.DropAction] = Qt.MoveAction) -> Qt.DropAction\n"
    "exec_(self, Union[Qt.DropActions, Qt.DropAction], 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, "exec(self, Union[Qt.DropActions, Qt.DropAction], Qt.DropAction) -> Qt.DropAction");

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

    {
         ::Qt::DropActions* a0;
        int a0State = 0;
         ::Qt::DropAction a1;
         ::QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "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, "setMimeData(self, 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, "mimeData(self) -> 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, "setPixmap(self, 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, "pixmap(self) -> 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, "setHotSpot(self, 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, "hotSpot(self) -> 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, "source(self) -> 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, "target(self) -> 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, "setDragCursor(self, 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, "dragCursor(self, 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, "supportedActions(self) -> 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, "defaultAction(self) -> 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;
}


PyDoc_STRVAR(doc_QDrag_cancel, "cancel()");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::QDrag::cancel();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_cancel, doc_QDrag_cancel);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QDrag(void *, const sipTypeDef *);}
static void *cast_QDrag(void *sipCppV, const sipTypeDef *targetType)
{
     ::QDrag *sipCpp = reinterpret_cast< ::QDrag *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQDrag *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QDrag(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 0, 1}};


static PyMethodDef methods_QDrag[] = {
    {SIP_MLNAME_CAST(sipName_cancel), meth_QDrag_cancel, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_cancel)},
    {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), meth_QDrag_exec, METH_VARARGS, 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}
};

PyDoc_STRVAR(doc_QDrag, "\1QDrag(QObject)");


/* Define this type's signals. */
static const pyqt5QtSignal signals_QDrag[] = {
    {"targetChanged(QObject*)", "\1targetChanged(self, QObject)", 0, 0},
    {"actionChanged(Qt::DropAction)", "\1actionChanged(self, Qt.DropAction)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QDrag = {
    & ::QDrag::staticMetaObject,
    0,
    signals_QDrag,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QDrag = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QDrag,
        {0},
        &plugin_QDrag
    },
    {
        sipNameNr_QDrag,
        {0, 0, 1},
        24, 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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qdesktopservices.sip"
#include <qdesktopservices.h>
#line 184651 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 184655 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 184658 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 96 "sip/QtCore/qurl.sip"
#include <qurl.h>
#line 184661 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QDesktopServices_openUrl, "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, "setUrlHandler(str, QObject, str)\n"
    "setUrlHandler(str, Callable[[], None])");

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;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8s", sipType_QString,&a0, &a0State, sipType_QObject, &a1, &a2))
        {
             ::QDesktopServices::setUrlHandler(*a0,a1,a2);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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.
        sipMethodDef pm;
        
        if (sipGetMethod(a1, &pm))
        {
            int iserr = 0;
            QObject *receiver = reinterpret_cast<QObject *>(sipForceConvertToType(
                    pm.pm_self, sipType_QObject, NULL, SIP_NOT_NONE, NULL, &iserr));
        
            if (!iserr)
            {
                PyObject *f_name_obj = PyObject_GetAttrString(pm.pm_function, "__name__");
        
                if (f_name_obj)
                {
                    // We only want a borrowed reference.
                    Py_DECREF(f_name_obj);
        
                    const char *f_name = sipString_AsASCIIString(&f_name_obj);
        
                    if (f_name)
                    {
                        QDesktopServices::setUrlHandler(*a0, receiver, f_name);
        
                        Py_DECREF(f_name_obj);
                    }
                }
            }
        }
#line 184758 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QDesktopServices = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QDesktopServices = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QDesktopServices,
        {0},
        &plugin_QDesktopServices
    },
    {
        sipNameNr_QDesktopServices,
        {0, 0, 1},
        3, methods_QDesktopServices,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDesktopServices,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 184940 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 184944 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 184947 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 184950 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 184953 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 184956 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QCursor_shape, "shape(self) -> 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, "setShape(self, 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, "bitmap(self) -> 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, "mask(self) -> 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, "pixmap(self) -> 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, "hotSpot(self) -> 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, "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, "setPos(int, int)\n"
    "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;
}


PyDoc_STRVAR(doc_QCursor_swap, "swap(self, Union[QCursor, Qt.CursorShape])");

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

    {
         ::QCursor* a0;
        int a0State = 0;
         ::QCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QCursor, &sipCpp, sipType_QCursor, &a0, &a0State))
        {
            sipCpp->swap(*a0);
            sipReleaseType(a0,sipType_QCursor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QCursor, sipName_swap, doc_QCursor_swap);

    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 (sipIsOwnedByPython(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;
        }
    }

    {
        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 56 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcursor.sip"
        if (a0->canConvert<QCursor>())
            sipCpp = new QCursor(a0->value<QCursor>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 185345 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 185390 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QCursor_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QCursor_swap)}
};

PyDoc_STRVAR(doc_QCursor, "\1QCursor()\n"
    "QCursor(QBitmap, QBitmap, hotX: int = -1, hotY: int = -1)\n"
    "QCursor(QPixmap, hotX: int = -1, hotY: int = -1)\n"
    "QCursor(Union[QCursor, Qt.CursorShape])\n"
    "QCursor(Any)");


static pyqt5ClassPluginDef plugin_QCursor = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QCursor = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QCursor,
        {0},
        &plugin_QCursor
    },
    {
        sipNameNr_QCursor,
        {0, 0, 1},
        9, methods_QCursor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QCursor,
    -1,
    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,
    0,
    convertTo_QCursor,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qclipboard.sip"
#include <qclipboard.h>
#line 185473 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 185477 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 185480 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 185483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 185486 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 185489 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 185492 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 185495 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 185498 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 185501 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 185504 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 185507 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 185510 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 185513 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 185516 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 185519 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 185522 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 185525 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 185528 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 185531 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QClipboard_clear, "clear(self, mode: QClipboard.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, "supportsFindBuffer(self) -> 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, "supportsSelection(self) -> 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, "ownsClipboard(self) -> 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, "ownsFindBuffer(self) -> 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, "ownsSelection(self) -> 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, "text(self, mode: QClipboard.Mode = QClipboard.Clipboard) -> str\n"
    "text(self, str, mode: QClipboard.Mode = QClipboard.Clipboard) -> Tuple[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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 185765 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "setText(self, str, mode: QClipboard.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, "mimeData(self, mode: QClipboard.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, "setMimeData(self, QMimeData, mode: QClipboard.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/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 185880 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "image(self, mode: QClipboard.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, "pixmap(self, mode: QClipboard.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, "setImage(self, QImage, mode: QClipboard.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, "setPixmap(self, QPixmap, mode: QClipboard.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 inheritance hierarchy. */
extern "C" {static void *cast_QClipboard(void *, const sipTypeDef *);}
static void *cast_QClipboard(void *sipCppV, const sipTypeDef *targetType)
{
     ::QClipboard *sipCpp = reinterpret_cast< ::QClipboard *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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[] = {{25, 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()", "\1selectionChanged(self)", 0, 0},
    {"findBufferChanged()", "\1findBufferChanged(self)", 0, 0},
    {"dataChanged()", "\1dataChanged(self)", 0, 0},
    {"changed(QClipboard::Mode)", "\1changed(self, QClipboard.Mode)", 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QClipboard = {
    & ::QClipboard::staticMetaObject,
    0,
    signals_QClipboard,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QClipboard = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QClipboard,
        {0},
        &plugin_QClipboard
    },
    {
        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
};

#line 211 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 186145 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 186149 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 123 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 186152 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 138 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 186156 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 186159 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QConicalGradient_center, "center(self) -> 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, "angle(self) -> 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, "setCenter(self, Union[QPointF, QPoint])\n"
    "setCenter(self, 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, "setAngle(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QConicalGradient(void *, const sipTypeDef *);}
static void *cast_QConicalGradient(void *sipCppV, const sipTypeDef *targetType)
{
     ::QConicalGradient *sipCpp = reinterpret_cast< ::QConicalGradient *>(sipCppV);

    if (targetType == sipType_QGradient)
        return static_cast< ::QGradient *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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(Union[QPointF, QPoint], float)\n"
    "QConicalGradient(float, float, float)\n"
    "QConicalGradient(QConicalGradient)");


static pyqt5ClassPluginDef plugin_QConicalGradient = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QConicalGradient = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QConicalGradient,
        {0},
        &plugin_QConicalGradient
    },
    {
        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
};

#line 183 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 186477 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 186481 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 123 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 186484 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 138 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 186488 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 186491 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QRadialGradient_center, "center(self) -> 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, "focalPoint(self) -> 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, "radius(self) -> 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, "setCenter(self, Union[QPointF, QPoint])\n"
    "setCenter(self, 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, "setFocalPoint(self, Union[QPointF, QPoint])\n"
    "setFocalPoint(self, 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, "setRadius(self, 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, "centerRadius(self) -> 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, "setCenterRadius(self, 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, "focalRadius(self) -> 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, "setFocalRadius(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QRadialGradient(void *, const sipTypeDef *);}
static void *cast_QRadialGradient(void *sipCppV, const sipTypeDef *targetType)
{
     ::QRadialGradient *sipCpp = reinterpret_cast< ::QRadialGradient *>(sipCppV);

    if (targetType == sipType_QGradient)
        return static_cast< ::QGradient *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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(Union[QPointF, QPoint], float, Union[QPointF, QPoint])\n"
    "QRadialGradient(Union[QPointF, QPoint], float, Union[QPointF, QPoint], float)\n"
    "QRadialGradient(Union[QPointF, QPoint], float)\n"
    "QRadialGradient(float, float, float, float, float)\n"
    "QRadialGradient(float, float, float, float, float, float)\n"
    "QRadialGradient(float, float, float)\n"
    "QRadialGradient(QRadialGradient)");


static pyqt5ClassPluginDef plugin_QRadialGradient = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QRadialGradient = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QRadialGradient,
        {0},
        &plugin_QRadialGradient
    },
    {
        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
};

#line 165 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 187071 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 187075 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 123 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 187078 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 138 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 187082 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 187085 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QLinearGradient_start, "start(self) -> 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, "finalStop(self) -> 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, "setStart(self, Union[QPointF, QPoint])\n"
    "setStart(self, 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, "setFinalStop(self, Union[QPointF, QPoint])\n"
    "setFinalStop(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QLinearGradient(void *, const sipTypeDef *);}
static void *cast_QLinearGradient(void *sipCppV, const sipTypeDef *targetType)
{
     ::QLinearGradient *sipCpp = reinterpret_cast< ::QLinearGradient *>(sipCppV);

    if (targetType == sipType_QGradient)
        return static_cast< ::QGradient *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsOwnedByPython(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(Union[QPointF, QPoint], Union[QPointF, QPoint])\n"
    "QLinearGradient(float, float, float, float)\n"
    "QLinearGradient(QLinearGradient)");


static pyqt5ClassPluginDef plugin_QLinearGradient = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QLinearGradient = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QLinearGradient,
        {0},
        &plugin_QLinearGradient
    },
    {
        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
};

#line 123 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 187424 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 138 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 187429 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 187432 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QGradient_type, "type(self) -> 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, "spread(self) -> 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, "setColorAt(self, float, Union[QColor, Qt.GlobalColor, QGradient])");

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, "setStops(self, object)");

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, "stops(self) -> object");

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, "setSpread(self, 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, "coordinateMode(self) -> 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, "setCoordinateMode(self, 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);
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QGradient = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QGradient = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QGradient,
        {0},
        &plugin_QGradient
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 187892 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 187896 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 187899 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 187902 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 187905 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 187908 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 187911 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 123 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 187914 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QBrush_setStyle, "setStyle(self, 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, "texture(self) -> 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, "setTexture(self, 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, "setColor(self, Union[QColor, Qt.GlobalColor, QGradient])\n"
    "setColor(self, 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, "gradient(self) -> 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, "isOpaque(self) -> 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, "style(self) -> 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, "color(self) -> 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, "setTextureImage(self, 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, "textureImage(self) -> 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, "setTransform(self, 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, "transform(self) -> 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, "swap(self, QBrush)");

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

    {
         ::QBrush* a0;
         ::QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBrush, &sipCpp, sipType_QBrush, &a0))
        {
            sipCpp->swap(*a0);

            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);
}


/* 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 (sipIsOwnedByPython(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;
        }
    }

    {
        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;
        }
    }

    {
        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  ::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 91 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbrush.sip"
        if (a0->canConvert<QBrush>())
            sipCpp = new QBrush(a0->value<QBrush>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 188512 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 188589 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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(Union[QColor, Qt.GlobalColor, QGradient], style: Qt.BrushStyle = Qt.SolidPattern)\n"
    "QBrush(Union[QColor, Qt.GlobalColor, QGradient], QPixmap)\n"
    "QBrush(QPixmap)\n"
    "QBrush(QImage)\n"
    "QBrush(Union[QBrush, QColor, Qt.GlobalColor, QGradient])\n"
    "QBrush(Any)");


static pyqt5ClassPluginDef plugin_QBrush = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QBrush = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QBrush,
        {0},
        &plugin_QBrush
    },
    {
        sipNameNr_QBrush,
        {0, 0, 1},
        13, methods_QBrush,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QBrush,
    -1,
    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,
    0,
    convertTo_QBrush,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 188687 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 188691 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qrgba64.sip"
#include <qrgba64.h>
#line 188694 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 188697 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 188700 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 188703 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QColor_name, "name(self) -> str\n"
    "name(self, 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, "setNamedColor(self, 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, "colorNames() -> List[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, "spec(self) -> 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, "alpha(self) -> 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, "setAlpha(self, 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, "alphaF(self) -> 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, "setAlphaF(self, 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, "red(self) -> 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, "green(self) -> 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, "blue(self) -> 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, "setRed(self, 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, "setGreen(self, 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, "setBlue(self, 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, "redF(self) -> 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, "greenF(self) -> 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, "blueF(self) -> 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, "setRedF(self, 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, "setGreenF(self, 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, "setBlueF(self, 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, "getRgb(self) -> Tuple[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, "setRgb(self, int, int, int, alpha: int = 255)\n"
    "setRgb(self, 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, "getRgbF(self) -> Tuple[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, "setRgbF(self, float, float, float, alpha: float = 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, "rgba(self) -> 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, "setRgba(self, 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, "rgb(self) -> 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, "hue(self) -> 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, "saturation(self) -> 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, "value(self) -> 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, "hueF(self) -> 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, "saturationF(self) -> 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, "valueF(self) -> 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, "getHsv(self) -> Tuple[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, "setHsv(self, int, int, int, alpha: int = 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, "getHsvF(self) -> Tuple[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, "setHsvF(self, float, float, float, alpha: float = 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, "cyan(self) -> 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, "magenta(self) -> 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, "yellow(self) -> 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, "black(self) -> 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, "cyanF(self) -> 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, "magentaF(self) -> 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, "yellowF(self) -> 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, "blackF(self) -> 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, "getCmyk(self) -> Tuple[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, "setCmyk(self, int, int, int, int, alpha: int = 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, "getCmykF(self) -> Tuple[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, "setCmykF(self, float, float, float, float, alpha: float = 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, "toRgb(self) -> 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, "toHsv(self) -> 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, "toCmyk(self) -> 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, "convertTo(self, 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, "fromRgb(int) -> QColor\n"
    "fromRgb(int, int, int, alpha: int = 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, "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, "fromRgbF(float, float, float, alpha: float = 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, "fromHsv(int, int, int, alpha: int = 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, "fromHsvF(float, float, float, alpha: float = 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, "fromCmyk(int, int, int, int, alpha: int = 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, "fromCmykF(float, float, float, float, alpha: float = 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, "isValid(self) -> 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, "lighter(self, factor: int = 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, "darker(self, factor: int = 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, "hsvHue(self) -> 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, "hsvSaturation(self) -> 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, "hsvHueF(self) -> 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, "hsvSaturationF(self) -> 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, "hslHue(self) -> 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, "hslSaturation(self) -> 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, "lightness(self) -> 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, "hslHueF(self) -> 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, "hslSaturationF(self) -> 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, "lightnessF(self) -> 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, "getHsl(self) -> Tuple[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, "setHsl(self, int, int, int, alpha: int = 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, "getHslF(self) -> Tuple[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, "setHslF(self, float, float, float, alpha: float = 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, "toHsl(self) -> 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, "fromHsl(int, int, int, alpha: int = 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, "fromHslF(float, float, float, alpha: float = 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, "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;
}


PyDoc_STRVAR(doc_QColor_rgba64, "rgba64(self) -> QRgba64");

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

    {
        const  ::QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
             ::QRgba64*sipRes;

            sipRes = new  ::QRgba64(sipCpp->rgba64());

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_rgba64, doc_QColor_rgba64);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setRgba64, "setRgba64(self, QRgba64)");

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

    {
         ::QRgba64* a0;
         ::QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QColor, &sipCpp, sipType_QRgba64, &a0))
        {
            sipCpp->setRgba64(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setRgba64, doc_QColor_setRgba64);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromRgba64, "fromRgba64(int, int, int, alpha: int = 65535) -> QColor\n"
    "fromRgba64(QRgba64) -> QColor");

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

    {
         ::ushort a0;
         ::ushort a1;
         ::ushort a2;
         ::ushort a3 = 65535;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "ttt|t", &a0, &a1, &a2, &a3))
        {
             ::QColor*sipRes;

            sipRes = new  ::QColor( ::QColor::fromRgba64(a0,a1,a2,a3));

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

    {
         ::QRgba64* a0;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "J9", sipType_QRgba64, &a0))
        {
             ::QColor*sipRes;

            sipRes = new  ::QColor( ::QColor::fromRgba64(*a0));

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromRgba64, doc_QColor_fromRgba64);

    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);
}


/* 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 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
    sipRes = Py_BuildValue((char *)"iiii", sipCpp->red(), sipCpp->green(), sipCpp->blue(), sipCpp->alpha());
#line 191412 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 (sipIsOwnedByPython(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;
        }
    }

    {
         ::QRgba64* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QRgba64, &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 72 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
        if (a0->canConvert<QColor>())
            sipCpp = new QColor(a0->value<QColor>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 191501 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 191604 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_fromRgba64), (PyCFunction)meth_QColor_fromRgba64, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_fromRgba64)},
    {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_rgba64), meth_QColor_rgba64, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_rgba64)},
    {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_setRgba64), meth_QColor_setRgba64, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setRgba64)},
    {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(QRgba64)\n"
    "QColor(Any)\n"
    "QColor()\n"
    "QColor(int, int, int, alpha: int = 255)\n"
    "QColor(str)\n"
    "QColor(Union[QColor, Qt.GlobalColor, QGradient])");


static pyqt5ClassPluginDef plugin_QColor = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QColor = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QColor,
        {0},
        &plugin_QColor
    },
    {
        sipNameNr_QColor,
        {0, 0, 1},
        84, methods_QColor,
        7, enummembers_QColor,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QColor,
    -1,
    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,
    0,
    convertTo_QColor,
    0,
    0,
    pickle_QColor,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 191783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 191787 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 191790 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 191793 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 191796 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 191799 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 191802 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 191805 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 191808 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 191811 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 191814 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 191817 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 191820 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 191823 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimagereader.sip"
#include <qimagereader.h>
#line 191826 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 191829 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 191832 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


class sipQBitmap : public  ::QBitmap
{
public:
    sipQBitmap();
    sipQBitmap(const  ::QBitmap&);
    sipQBitmap(const  ::QPixmap&);
    sipQBitmap(int,int);
    sipQBitmap(const  ::QSize&);
    sipQBitmap(const  ::QString&,const char*);
    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  ::QBitmap& a0):  ::QBitmap(a0), 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()
{
    sipInstanceDestroyed(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_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipQBitmap::sipProtectVirt_metric(bool sipSelfWasArg, ::QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ?  ::QPixmap::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QBitmap_metric, "metric(self, 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 || sipIsDerivedClass((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, "clear(self)");

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, "fromImage(QImage, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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, "fromData(QSize, bytes, format: QImage.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, "transformed(self, 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, "swap(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QBitmap(void *, const sipTypeDef *);}
static void *cast_QBitmap(void *sipCppV, const sipTypeDef *targetType)
{
     ::QBitmap *sipCpp = reinterpret_cast< ::QBitmap *>(sipCppV);

    if (targetType == sipType_QPixmap)
        return static_cast< ::QPixmap *>(sipCpp);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQBitmap *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QBitmap(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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  ::QBitmap* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QBitmap, &a0))
        {
            sipCpp = new sipQBitmap(*a0);

            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;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|s", sipType_QString,&a0, &a0State, &a1))
        {
            sipCpp = new sipQBitmap(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            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 40 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbitmap.sip"
        if (a0->canConvert<QBitmap>())
            sipCpp = new sipQBitmap(a0->value<QBitmap>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 192309 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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_QBitmap[] = {{231, 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(QBitmap)\n"
    "QBitmap(QPixmap)\n"
    "QBitmap(int, int)\n"
    "QBitmap(QSize)\n"
    "QBitmap(str, format: str = None)\n"
    "QBitmap(Any)");


static pyqt5ClassPluginDef plugin_QBitmap = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QBitmap = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QBitmap,
        {0},
        &plugin_QBitmap
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 192417 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 192421 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 192424 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 192427 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 192430 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 192433 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 192436 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 192439 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 192442 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 192445 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 192448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 192451 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 192454 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 192457 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qimagereader.sip"
#include <qimagereader.h>
#line 192460 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 192463 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 192466 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 devType() const;
     ::QPaintEngine* paintEngine() const;
    int metric( ::QPaintDevice::PaintDeviceMetric) 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()
{
    sipInstanceDestroyed(sipPySelf);
}

int sipQPixmap::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return  ::QPixmap::devType();

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::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_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_17(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipQPixmap::metric( ::QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return  ::QPixmap::metric(a0);

    extern int sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_18(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

int sipQPixmap::sipProtectVirt_metric(bool sipSelfWasArg, ::QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ?  ::QPixmap::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QPixmap_isNull, "isNull(self) -> 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, "devType(self) -> 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 || sipIsDerivedClass((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, "width(self) -> 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, "height(self) -> 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, "size(self) -> 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, "rect(self) -> 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, "depth(self) -> 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, "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, "fill(self, color: Union[QColor, Qt.GlobalColor, QGradient] = 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, "mask(self) -> 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, "setMask(self, 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, "hasAlpha(self) -> 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, "hasAlphaChannel(self) -> 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, "createHeuristicMask(self, clipTight: bool = 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, "createMaskFromColor(self, Union[QColor, Qt.GlobalColor, QGradient], mode: Qt.MaskMode = 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, "scaled(self, int, int, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation) -> QPixmap\n"
    "scaled(self, QSize, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = 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, "scaledToWidth(self, int, mode: Qt.TransformationMode = 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, "scaledToHeight(self, int, mode: Qt.TransformationMode = 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, "toImage(self) -> 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, "fromImage(QImage, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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, "fromImageReader(QImageReader, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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, "convertFromImage(self, QImage, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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, "load(self, str, format: str = None, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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;
         ::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|sJ1", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_Qt_ImageConversionFlags, &a2, &a2State))
        {
            bool sipRes;

            sipRes = sipCpp->load(*a0,a1,*a2);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            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, "loadFromData(self, bytes, format: str = None, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.AutoColor) -> bool\n"
    "loadFromData(self, Union[QByteArray, bytes, bytearray], format: str = None, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = 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;
         ::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|sJ1", &sipSelf, sipType_QPixmap, &sipCpp, &a0, &a1, &a2, sipType_Qt_ImageConversionFlags, &a3, &a3State))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(a0,(uint)a1,a2,*a3);
            sipReleaseType(a3,sipType_Qt_ImageConversionFlags,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QByteArray* a0;
        int a0State = 0;
        const char* a1 = 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|sJ1", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1, sipType_Qt_ImageConversionFlags, &a2, &a2State))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(*a0,a1,*a2);
            sipReleaseType(const_cast< ::QByteArray *>(a0),sipType_QByteArray,a0State);
            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, "save(self, str, format: str = None, quality: int = -1) -> bool\n"
    "save(self, QIODevice, format: str = None, quality: int = -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;
        int a2 = -1;
        const  ::QPixmap *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|si", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QString,&a0, &a0State, &a1, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->save(*a0,a1,a2);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
         ::QIODevice* a0;
        const char* a1 = 0;
        int a2 = -1;
        const  ::QPixmap *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|si", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QIODevice, &a0, &a1, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->save(a0,a1,a2);

            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, "copy(self, rect: QRect = QRect()) -> QPixmap\n"
    "copy(self, 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, "detach(self)");

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, "isQBitmap(self) -> 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, "paintEngine(self) -> 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 || sipIsDerivedClass((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, "metric(self, 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 || sipIsDerivedClass((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, "transformed(self, QTransform, mode: Qt.TransformationMode = 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, "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, "cacheKey(self) -> 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, "scroll(self, int, int, QRect) -> QRegion\n"
    "scroll(self, 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, "swap(self, 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, "devicePixelRatio(self) -> 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, "setDevicePixelRatio(self, 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 inheritance hierarchy. */
extern "C" {static void *cast_QPixmap(void *, const sipTypeDef *);}
static void *cast_QPixmap(void *sipCppV, const sipTypeDef *targetType)
{
     ::QPixmap *sipCpp = reinterpret_cast< ::QPixmap *>(sipCppV);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQPixmap *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QPixmap(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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;
         ::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|sJ1", sipType_QString,&a0, &a0State, &a1, sipType_Qt_ImageConversionFlags, &a2, &a2State))
        {
            sipCpp = new sipQPixmap(*a0,a1,*a2);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);
            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 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 194039 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 52 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpixmap.sip"
        if (a0->canConvert<QPixmap>())
            sipCpp = new sipQPixmap(a0->value<QPixmap>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 194085 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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[] = {{191, 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, format: str = None, flags: Union[Qt.ImageConversionFlags, Qt.ImageConversionFlag] = Qt.AutoColor)\n"
    "QPixmap(List[str])\n"
    "QPixmap(QPixmap)\n"
    "QPixmap(Any)");


static pyqt5ClassPluginDef plugin_QPixmap = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QPixmap = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPixmap,
        {0},
        &plugin_QPixmap
    },
    {
        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
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qbackingstore.sip"
#include <qbackingstore.h>
#line 194224 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 194228 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 194231 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 194234 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 194237 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 194240 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QBackingStore_window, "window(self) -> 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, "paintDevice(self) -> 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, "flush(self, QRegion, window: QWindow = None, offset: QPoint = 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, "resize(self, 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, "size(self) -> 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, "scroll(self, 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, "beginPaint(self, 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, "endPaint(self)");

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, "setStaticContents(self, 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, "staticContents(self) -> 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, "hasStaticContents(self) -> 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;
}


/* 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 (sipIsOwnedByPython(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)");


static pyqt5ClassPluginDef plugin_QBackingStore = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QBackingStore = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QBackingStore,
        {0},
        &plugin_QBackingStore
    },
    {
        sipNameNr_QBackingStore,
        {0, 0, 1},
        11, methods_QBackingStore,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QBackingStore,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 97 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 194677 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 194681 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 194684 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 194687 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 194690 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 194693 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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()
{
    sipInstanceDestroyed(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_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPainter*,const  ::QRectF&, ::QTextDocument*,int,const  ::QTextFormat&);

    sipVH_QtGui_16(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTextDocument*,int,const  ::QTextFormat&);

    return sipVH_QtGui_15(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}


PyDoc_STRVAR(doc_QTextObjectInterface_intrinsicSize, "intrinsicSize(self, 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, "drawObject(self, 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;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQTextObjectInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QTextObjectInterface(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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)");


static pyqt5ClassPluginDef plugin_QTextObjectInterface = {
    0,
    0,
    0,
    "org.qt-project.Qt.QTextObjectInterface"
};


sipClassTypeDef sipTypeDef_QtGui_QTextObjectInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextObjectInterface,
        {0},
        &plugin_QTextObjectInterface
    },
    {
        sipNameNr_QTextObjectInterface,
        {0, 0, 1},
        2, methods_QTextObjectInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextObjectInterface,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    mixin_QTextObjectInterface
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 194979 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 194983 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 194986 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 194989 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 194994 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


/* 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 (sipIsOwnedByPython(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 *, PyObject *)
{
     ::QRectF*sipVal;
     ::QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast< ::QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    sipVal = &sipCpp->clip;

    return sipConvertFromType(sipVal, sipType_QRectF, NULL);
}


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 *, PyObject *)
{
     ::QPalette*sipVal;
     ::QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast< ::QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    sipVal = &sipCpp->palette;

    return sipConvertFromType(sipVal, sipType_QPalette, NULL);
}


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 *, PyObject *)
{
    QVector< ::QAbstractTextDocumentLayout::Selection>*sipVal;
     ::QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast< ::QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    sipVal = &sipCpp->selections;

    return sipConvertFromType(sipVal, sipType_QVector_0100QAbstractTextDocumentLayout_Selection, NULL);
}


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)");


static pyqt5ClassPluginDef plugin_QAbstractTextDocumentLayout_PaintContext = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QAbstractTextDocumentLayout_PaintContext = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QAbstractTextDocumentLayout__PaintContext,
        {0},
        &plugin_QAbstractTextDocumentLayout_PaintContext
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 195262 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 195266 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 195269 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"


/* 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 (sipIsOwnedByPython(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 *, PyObject *)
{
     ::QTextCursor*sipVal;
     ::QAbstractTextDocumentLayout::Selection *sipCpp = reinterpret_cast< ::QAbstractTextDocumentLayout::Selection *>(sipSelf);

    sipVal = &sipCpp->cursor;

    return sipConvertFromType(sipVal, sipType_QTextCursor, NULL);
}


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 *, PyObject *)
{
     ::QTextCharFormat*sipVal;
     ::QAbstractTextDocumentLayout::Selection *sipCpp = reinterpret_cast< ::QAbstractTextDocumentLayout::Selection *>(sipSelf);

    sipVal = &sipCpp->format;

    return sipConvertFromType(sipVal, sipType_QTextCharFormat, NULL);
}


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)");


static pyqt5ClassPluginDef plugin_QAbstractTextDocumentLayout_Selection = {
    0,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QAbstractTextDocumentLayout_Selection = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QAbstractTextDocumentLayout__Selection,
        {0},
        &plugin_QAbstractTextDocumentLayout_Selection
    },
    {
        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,
    -1,
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 195470 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 195474 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 59 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 195477 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 95 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 195480 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 195483 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 249 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 195486 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 195489 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 164 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 195492 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 195495 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 195498 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 195501 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 97 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 195504 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 195507 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 195510 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 195513 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 195516 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 46 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 195521 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 195524 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 195527 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 247 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 195530 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 235 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 195533 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 195536 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 38 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 195539 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 195542 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 148 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 195545 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 195548 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 195551 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 195554 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 195557 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 195560 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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 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&);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

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()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipQAbstractTextDocumentLayout::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QAbstractTextDocumentLayout);

    return  ::QAbstractTextDocumentLayout::metaObject();
}

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::drawInlineObject( ::QPainter*a0,const  ::QRectF& a1, ::QTextInlineObject a2,int a3,const  ::QTextFormat& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_drawInlineObject);

    if (!sipMeth)
    {
         ::QAbstractTextDocumentLayout::drawInlineObject(a0,a1,a2,a3,a4);
        return;
    }

    extern void sipVH_QtGui_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPainter*,const  ::QRectF&, ::QTextInlineObject,int,const  ::QTextFormat&);

    sipVH_QtGui_14(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[1],sipPySelf,NULL,sipName_positionInlineObject);

    if (!sipMeth)
    {
         ::QAbstractTextDocumentLayout::positionInlineObject(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTextInlineObject,int,const  ::QTextFormat&);

    sipVH_QtGui_13(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[2],sipPySelf,NULL,sipName_resizeInlineObject);

    if (!sipMeth)
    {
         ::QAbstractTextDocumentLayout::resizeInlineObject(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTextInlineObject,int,const  ::QTextFormat&);

    sipVH_QtGui_13(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

void sipQAbstractTextDocumentLayout::documentChanged(int a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_documentChanged);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);

    sipVH_QtGui_12(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[4]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_blockBoundingRect);

    if (!sipMeth)
        return  ::QRectF();

    extern  ::QRectF sipVH_QtGui_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QTextBlock&);

    return sipVH_QtGui_11(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QRectF sipQAbstractTextDocumentLayout::frameBoundingRect( ::QTextFrame*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_frameBoundingRect);

    if (!sipMeth)
        return  ::QRectF();

    extern  ::QRectF sipVH_QtGui_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTextFrame*);

    return sipVH_QtGui_10(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QSizeF sipQAbstractTextDocumentLayout::documentSize() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_documentSize);

    if (!sipMeth)
        return  ::QSizeF();

    extern  ::QSizeF sipVH_QtGui_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_9(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipQAbstractTextDocumentLayout::pageCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_pageCount);

    if (!sipMeth)
        return 0;

    extern int sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_8(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, 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[8]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_hitTest);

    if (!sipMeth)
        return 0;

    extern int sipVH_QtGui_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPointF&, ::Qt::HitTestAccuracy);

    return sipVH_QtGui_7(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQAbstractTextDocumentLayout::draw( ::QPainter*a0,const  ::QAbstractTextDocumentLayout::PaintContext& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_draw);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPainter*,const  ::QAbstractTextDocumentLayout::PaintContext&);

    sipVH_QtGui_6(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipQAbstractTextDocumentLayout::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::QAbstractTextDocumentLayout::event(a0);

    extern bool sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtGui_5(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQAbstractTextDocumentLayout::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::QAbstractTextDocumentLayout::eventFilter(a0,a1);

    extern bool sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtGui_4(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQAbstractTextDocumentLayout::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::QAbstractTextDocumentLayout::timerEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtGui_3(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQAbstractTextDocumentLayout::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::QAbstractTextDocumentLayout::childEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtGui_2(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQAbstractTextDocumentLayout::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::QAbstractTextDocumentLayout::customEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtGui_1(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQAbstractTextDocumentLayout::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::QAbstractTextDocumentLayout::connectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQAbstractTextDocumentLayout::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::QAbstractTextDocumentLayout::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtGui_0(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::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, "sender(self) -> 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 560 "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");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }
#line 196053 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "receivers(self, PYQT_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 591 "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");
            Q_ASSERT(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 196113 "/usr/src/ports/python-pyqt5/python-pyqt5-5.9-1.i686/build/py2/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, "timerEvent(self, 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 || sipIsDerivedClass((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, "childEvent(self, 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 || sipIsDerivedClass((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, "customEvent(self, 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 || sipIsDerivedClass((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, "connectNotify(self, 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 || sipIsDerivedClass((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, "disconnectNotify(self, 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 || sipIsDerivedClass((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, "senderSignalIndex(self) -> 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, "isSignalConnected(self, 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, "draw(self, 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, "hitTest(self, Union[QPointF, QPoint], 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, "anchorAt(self, Union[QPointF, QPoint]) -> 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, "pageCount(self) -> 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, "documentSize(self) -> 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, "frameBoundingRect(self, 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, "blockBoundingRect(self, 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, "setPaintDevice(self, 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, "paintDevice(self) -> 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, "document(self) -> 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, "registerHandler(self, 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, "unregisterHandler(self, int, component: QObject = 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, "handlerForObject(self, 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, "documentChanged(self, 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, "resizeInlineObject(self, 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 || sipIsDerivedClass((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, "positionInlineObject(self, 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 || sipIsDerivedClass((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, "drawInlineObject(self, 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 || sipIsDerivedClass((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, "format(self, 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;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_imageAt, "imageAt(self, Union[QPointF, QPoint]) -> str");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_imageAt(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_imageAt(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->imageAt(*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_imageAt, doc_QAbstractTextDocumentLayout_imageAt);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_formatAt, "formatAt(self, Union[QPointF, QPoint]) -> QTextFormat");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_formatAt(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_formatAt(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))
        {
             ::QTextFormat*sipRes;

            sipRes = new  ::QTextFormat(sipCpp->formatAt(*a0));
            sipReleaseType(const_cast< ::QPointF *>(a0),sipType_QPointF,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_formatAt, doc_QAbstractTextDocumentLayout_formatAt);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QAbstractTextDocumentLayout(void *, const sipTypeDef *);}
static void *cast_QAbstractTextDocumentLayout(void *sipCppV, const sipTypeDef *targetType)
{
     ::QAbstractTextDocumentLayout *sipCpp = reinterpret_cast< ::QAbstractTextDocumentLayout *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* 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 (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQAbstractTextDocumentLayout *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QAbstractTextDocumentLayout(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


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[] = {{25, 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_formatAt), meth_QAbstractTextDocumentLayout_formatAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_formatAt)},
    {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_imageAt), meth_QAbstractTextDocumentLayout_imageAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_imageAt)},
    {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)}
};

PyDoc_STRVAR(doc_QAbstractTextDocumentLayout, "\1QAbstractTextDocumentLayout(QTextDocument)");


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)", "\1updateBlock(self, QTextBlock)", 0, 0},
    {"pageCountChanged(int)", "\1pageCountChanged(self, int)", 0, 0},
    {"documentSizeChanged(QSizeF)", "\1documentSizeChanged(self, QSizeF)", 0, 0},
    {"update(QRectF)", "\1update(self, QRectF = QRectF(0,0,1e+09,1e+09))", 0, emit_QAbstractTextDocumentLayout_update},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_QAbstractTextDocumentLayout = {
    & ::QAbstractTextDocumentLayout::staticMetaObject,
    0,
    signals_QAbstractTextDocumentLayout,
    0
};


sipClassTypeDef sipTypeDef_QtGui_QAbstractTextDocumentLayout = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QAbstractTextDocumentLayout,
        {0},
        &plugin_QAbstractTextDocumentLayout
    },
    {
        sipNameNr_QAbstractTextDocumentLayout,
        {0, 0, 1},
        29, 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
};
