/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.16.1
 *
 * Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6.
 * 
 * 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 "sipAPIQtMultimedia.h"

#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtMultimedia/qwindowcapture.sip"
#include <qwindowcapture.h>
#line 29 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"

#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 24 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 36 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtMultimedia/qcapturablewindow.sip"
#include <qcapturablewindow.h>
#line 39 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 42 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 154 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 47 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 50 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 53 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 277 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 254 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 59 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 62 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 65 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 30 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 68 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 135 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 71 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 154 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 76 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 79 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 82 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 25 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 85 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 88 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 91 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQWindowCapture.cpp"


class sipQWindowCapture : public ::QWindowCapture
{
public:
    sipQWindowCapture(::QObject*);
    virtual ~sipQWindowCapture();

    int qt_metacall(QMetaObject::Call, int, void **) SIP_OVERRIDE;
    void *qt_metacast(const char *) SIP_OVERRIDE;
    const QMetaObject *metaObject() const SIP_OVERRIDE;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool event(::QEvent*) SIP_OVERRIDE;
    bool eventFilter(::QObject*, ::QEvent*) SIP_OVERRIDE;
    void timerEvent(::QTimerEvent*) SIP_OVERRIDE;
    void childEvent(::QChildEvent*) SIP_OVERRIDE;
    void customEvent(::QEvent*) SIP_OVERRIDE;
    void connectNotify(const ::QMetaMethod&) SIP_OVERRIDE;
    void disconnectNotify(const ::QMetaMethod&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQWindowCapture(const sipQWindowCapture &);
    sipQWindowCapture &operator = (const sipQWindowCapture &);

    char sipPyMethods[7];
};

sipQWindowCapture::sipQWindowCapture(::QObject*a0): ::QWindowCapture(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQWindowCapture::~sipQWindowCapture()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

const QMetaObject *sipQWindowCapture::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtMultimedia_qt_metaobject(sipPySelf, sipType_QWindowCapture);

    return ::QWindowCapture::metaObject();
}

int sipQWindowCapture::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = ::QWindowCapture::qt_metacall(_c, _id, _a);

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtMultimedia_qt_metacall(sipPySelf, sipType_QWindowCapture, _c, _id, _a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

void *sipQWindowCapture::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtMultimedia_qt_metacast(sipPySelf, sipType_QWindowCapture, _clname, &sipCpp) ? sipCpp : ::QWindowCapture::qt_metacast(_clname));
}

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

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

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

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

    return sipVH_QtMultimedia_5(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

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

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

    sipVH_QtMultimedia_3(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

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

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

    sipVH_QtMultimedia_2(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtMultimedia_1(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtMultimedia_0(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_QtMultimedia_0(sipGILState, sipImportedVirtErrorHandlers_QtMultimedia_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QWindowCapture_capturableWindows, "capturableWindows() -> list[QCapturableWindow]");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, "C", &sipSelf))
        {
            QList< ::QCapturableWindow>*sipRes;

            sipRes = new QList< ::QCapturableWindow>(::QWindowCapture::capturableWindows());

            return sipConvertFromNewType(sipRes, sipType_QList_0100QCapturableWindow, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWindowCapture, sipName_capturableWindows, doc_QWindowCapture_capturableWindows);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWindowCapture_setWindow, "setWindow(self, window: QCapturableWindow)");

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

    {
        ::QCapturableWindow* a0;
        ::QWindowCapture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindowCapture, &sipCpp, sipType_QCapturableWindow, &a0))
        {
            sipCpp->setWindow(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWindowCapture, sipName_setWindow, doc_QWindowCapture_setWindow);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWindowCapture_window, "window(self) -> QCapturableWindow");

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

    {
        const ::QWindowCapture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindowCapture, &sipCpp))
        {
            ::QCapturableWindow*sipRes;

            sipRes = new ::QCapturableWindow(sipCpp->window());

            return sipConvertFromNewType(sipRes, sipType_QCapturableWindow, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWindowCapture, sipName_window, doc_QWindowCapture_window);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWindowCapture_isActive, "isActive(self) -> bool");

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

    {
        const ::QWindowCapture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindowCapture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isActive();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWindowCapture, sipName_isActive, doc_QWindowCapture_isActive);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWindowCapture_error, "error(self) -> QWindowCapture.Error");

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

    {
        const ::QWindowCapture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindowCapture, &sipCpp))
        {
            ::QWindowCapture::Error sipRes;

            sipRes = sipCpp->error();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QWindowCapture_Error);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWindowCapture, sipName_error, doc_QWindowCapture_error);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWindowCapture_errorString, "errorString(self) -> str");

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

    {
        const ::QWindowCapture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindowCapture, &sipCpp))
        {
            ::QString*sipRes;

            sipRes = new ::QString(sipCpp->errorString());

            return sipConvertFromNewType(sipRes, sipType_QString, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWindowCapture, sipName_errorString, doc_QWindowCapture_errorString);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWindowCapture_setActive, "setActive(self, active: bool)");

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

    {
        bool a0;
        ::QWindowCapture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QWindowCapture, &sipCpp, &a0))
        {
            sipCpp->setActive(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWindowCapture, sipName_setActive, doc_QWindowCapture_setActive);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWindowCapture_start, "start(self)");

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

    {
        ::QWindowCapture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindowCapture, &sipCpp))
        {
            sipCpp->start();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWindowCapture, sipName_start, doc_QWindowCapture_start);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWindowCapture_stop, "stop(self)");

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

    {
        ::QWindowCapture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindowCapture, &sipCpp))
        {
            sipCpp->stop();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QWindowCapture, sipName_stop, doc_QWindowCapture_stop);

    return SIP_NULLPTR;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QWindowCapture(void *, const sipTypeDef *);}
static void *cast_QWindowCapture(void *sipCppV, const sipTypeDef *targetType)
{
    ::QWindowCapture *sipCpp = reinterpret_cast< ::QWindowCapture *>(sipCppV);

    if (targetType == sipType_QWindowCapture)
        return sipCppV;

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

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWindowCapture(void *, int);}
static void release_QWindowCapture(void *sipCppV, int)
{
    ::QWindowCapture *sipCpp = reinterpret_cast< ::QWindowCapture *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void *array_QWindowCapture(Py_ssize_t);}
static void *array_QWindowCapture(Py_ssize_t sipNrElem)
{
    return new ::QWindowCapture[sipNrElem];
}


extern "C" {static void array_delete_QWindowCapture(void *);}
static void array_delete_QWindowCapture(void *sipCpp)
{
    delete[] reinterpret_cast< ::QWindowCapture *>(sipCpp);
}


extern "C" {static void dealloc_QWindowCapture(sipSimpleWrapper *);}
static void dealloc_QWindowCapture(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQWindowCapture *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

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


extern "C" {static void *init_type_QWindowCapture(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QWindowCapture(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQWindowCapture *sipCpp = SIP_NULLPTR;

    {
        ::QObject* a0 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQWindowCapture(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QWindowCapture[] = {{7, 0, 1}};


static PyMethodDef methods_QWindowCapture[] = {
    {sipName_capturableWindows, meth_QWindowCapture_capturableWindows, METH_VARARGS, doc_QWindowCapture_capturableWindows},
    {sipName_error, meth_QWindowCapture_error, METH_VARARGS, doc_QWindowCapture_error},
    {sipName_errorString, meth_QWindowCapture_errorString, METH_VARARGS, doc_QWindowCapture_errorString},
    {sipName_isActive, meth_QWindowCapture_isActive, METH_VARARGS, doc_QWindowCapture_isActive},
    {sipName_setActive, meth_QWindowCapture_setActive, METH_VARARGS, doc_QWindowCapture_setActive},
    {sipName_setWindow, meth_QWindowCapture_setWindow, METH_VARARGS, doc_QWindowCapture_setWindow},
    {sipName_start, meth_QWindowCapture_start, METH_VARARGS, doc_QWindowCapture_start},
    {sipName_stop, meth_QWindowCapture_stop, METH_VARARGS, doc_QWindowCapture_stop},
    {sipName_window, meth_QWindowCapture_window, METH_VARARGS, doc_QWindowCapture_window}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QWindowCapture[] = {
    {sipName_NoError, static_cast<int>(::QWindowCapture::NoError)},
    {sipName_InternalError, static_cast<int>(::QWindowCapture::InternalError)},
    {sipName_CapturingNotSupported, static_cast<int>(::QWindowCapture::CapturingNotSupported)},
    {sipName_CaptureFailed, static_cast<int>(::QWindowCapture::CaptureFailed)},
    {sipName_NotFound, static_cast<int>(::QWindowCapture::NotFound)},
    {0, 0}
};

PyDoc_STRVAR(doc_QWindowCapture, "\1QWindowCapture(parent: QObject|None = None)");


/* Define this type's signals. */
static const pyqt6QtSignal signals_QWindowCapture[] = {
    {"errorOccurred(QWindowCapture::Error,QString)", "\1errorOccurred(self, error: QWindowCapture.Error, errorString: str|None)", SIP_NULLPTR, SIP_NULLPTR},
    {"errorChanged()", "\1errorChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"windowChanged(QCapturableWindow)", "\1windowChanged(self, window: QCapturableWindow)", SIP_NULLPTR, SIP_NULLPTR},
    {"activeChanged(bool)", "\1activeChanged(self, a0: bool)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QWindowCapture = {
    &::QWindowCapture::staticMetaObject,
    signals_QWindowCapture,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtMultimedia_QWindowCapture = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWindowCapture,
        SIP_NULLPTR,
        &plugin_QWindowCapture,
    },
    {
        sipNameNr_QWindowCapture,
        {0, 0, 1},
        9, methods_QWindowCapture,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QWindowCapture, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWindowCapture,
    -1,
    -1,
    supers_QWindowCapture,
    SIP_NULLPTR,
    init_type_QWindowCapture,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWindowCapture,
    SIP_NULLPTR,
    array_QWindowCapture,
    SIP_NULLPTR,
    release_QWindowCapture,
    cast_QWindowCapture,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWindowCapture,
    sizeof (::QWindowCapture),
};
