/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.3
 *
 * 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/qcapturablewindow.sip"
#include <qcapturablewindow.h>
#line 29 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQCapturableWindow.cpp"

#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 33 "/build/pyqt6/src/pyqt6-6.11.0/build/QtMultimedia/sipQtMultimediaQCapturableWindow.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/sipQtMultimediaQCapturableWindow.cpp"


PyDoc_STRVAR(doc_QCapturableWindow_swap, "swap(self, other: QCapturableWindow)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QCapturableWindow, sipName_swap, doc_QCapturableWindow_swap);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QCapturableWindow_isValid, "isValid(self) -> bool");

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

    {
        const ::QCapturableWindow *sipCpp;

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

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QCapturableWindow, sipName_isValid, doc_QCapturableWindow_isValid);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QCapturableWindow_description, "description(self) -> str");

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

    {
        const ::QCapturableWindow *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QCapturableWindow, sipName_description, doc_QCapturableWindow_description);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QCapturableWindow___eq__(PyObject *, PyObject *);}
static PyObject *slot_QCapturableWindow___eq__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QCapturableWindow *sipCpp = reinterpret_cast< ::QCapturableWindow *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QCapturableWindow));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QCapturableWindow* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QCapturableWindow, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtMultimedia, eq_slot, sipType_QCapturableWindow, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QCapturableWindow___ne__(PyObject *, PyObject *);}
static PyObject *slot_QCapturableWindow___ne__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QCapturableWindow *sipCpp = reinterpret_cast< ::QCapturableWindow *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QCapturableWindow));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QCapturableWindow* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QCapturableWindow, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtMultimedia, ne_slot, sipType_QCapturableWindow, sipSelf, sipArg);
}


/* Call the instance's destructor. */
extern "C" {static void release_QCapturableWindow(void *, int);}
static void release_QCapturableWindow(void *sipCppV, int)
{
    delete reinterpret_cast< ::QCapturableWindow *>(sipCppV);
}


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


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


extern "C" {static void assign_QCapturableWindow(void *, Py_ssize_t, void *);}
static void assign_QCapturableWindow(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::QCapturableWindow *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::QCapturableWindow *>(sipSrc);
}


extern "C" {static void *copy_QCapturableWindow(const void *, Py_ssize_t);}
static void *copy_QCapturableWindow(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new ::QCapturableWindow(reinterpret_cast<const ::QCapturableWindow *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QCapturableWindow(sipSimpleWrapper *);}
static void dealloc_QCapturableWindow(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_QCapturableWindow(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_QCapturableWindow(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QCapturableWindow(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    ::QCapturableWindow *sipCpp = SIP_NULLPTR;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new ::QCapturableWindow();

            return sipCpp;
        }
    }

    {
        ::QWindow* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J8", sipType_QWindow, &a0))
        {
            sipCpp = new ::QCapturableWindow(a0);

            return sipCpp;
        }
    }

    {
        const ::QCapturableWindow* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QCapturableWindow, &a0))
        {
            sipCpp = new ::QCapturableWindow(*a0);

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QCapturableWindow[] = {
    {(void *)slot_QCapturableWindow___eq__, eq_slot},
    {(void *)slot_QCapturableWindow___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QCapturableWindow[] = {
    {sipName_description, meth_QCapturableWindow_description, METH_VARARGS, doc_QCapturableWindow_description},
    {sipName_isValid, meth_QCapturableWindow_isValid, METH_VARARGS, doc_QCapturableWindow_isValid},
    {sipName_swap, meth_QCapturableWindow_swap, METH_VARARGS, doc_QCapturableWindow_swap}
};

PyDoc_STRVAR(doc_QCapturableWindow, "\1QCapturableWindow()\n"
"QCapturableWindow(window: QWindow|None)\n"
"QCapturableWindow(other: QCapturableWindow)");


sipClassTypeDef sipTypeDef_QtMultimedia_QCapturableWindow = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QCapturableWindow,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QCapturableWindow,
        {0, 0, 1},
        3, methods_QCapturableWindow,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QCapturableWindow,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QCapturableWindow,
    init_type_QCapturableWindow,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QCapturableWindow,
    assign_QCapturableWindow,
    array_QCapturableWindow,
    copy_QCapturableWindow,
    release_QCapturableWindow,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QCapturableWindow,
    sizeof (::QCapturableWindow),
};
