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

#line 26 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/sip/QtWebEngineCore/qwebenginefindtextresult.sip"
#include <qwebenginefindtextresult.h>
#line 29 "/build/pyqt6-webengine/src/pyqt6_webengine-6.11.0/build/QtWebEngineCore/sipQtWebEngineCoreQWebEngineFindTextResult.cpp"



PyDoc_STRVAR(doc_QWebEngineFindTextResult_numberOfMatches, "numberOfMatches(self) -> int");

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

    {
        const ::QWebEngineFindTextResult *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineFindTextResult, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->numberOfMatches();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineFindTextResult, sipName_numberOfMatches, doc_QWebEngineFindTextResult_numberOfMatches);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QWebEngineFindTextResult_activeMatch, "activeMatch(self) -> int");

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

    {
        const ::QWebEngineFindTextResult *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWebEngineFindTextResult, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->activeMatch();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QWebEngineFindTextResult, sipName_activeMatch, doc_QWebEngineFindTextResult_activeMatch);

    return SIP_NULLPTR;
}


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const ::QWebEngineFindTextResult* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_QWebEngineFindTextResult[] = {
    {sipName_activeMatch, meth_QWebEngineFindTextResult_activeMatch, METH_VARARGS, doc_QWebEngineFindTextResult_activeMatch},
    {sipName_numberOfMatches, meth_QWebEngineFindTextResult_numberOfMatches, METH_VARARGS, doc_QWebEngineFindTextResult_numberOfMatches}
};

PyDoc_STRVAR(doc_QWebEngineFindTextResult, "\1QWebEngineFindTextResult()\n"
"QWebEngineFindTextResult(other: QWebEngineFindTextResult)");


sipClassTypeDef sipTypeDef_QtWebEngineCore_QWebEngineFindTextResult = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QWebEngineFindTextResult,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QWebEngineFindTextResult,
        {0, 0, 1},
        2, methods_QWebEngineFindTextResult,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QWebEngineFindTextResult,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QWebEngineFindTextResult,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QWebEngineFindTextResult,
    assign_QWebEngineFindTextResult,
    array_QWebEngineFindTextResult,
    copy_QWebEngineFindTextResult,
    release_QWebEngineFindTextResult,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QWebEngineFindTextResult,
    sizeof (::QWebEngineFindTextResult),
};
