/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.3
 *
 * Copyright (c) 2024 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 "sipAPIQtWidgets.h"

#line 1009 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtWidgets/qstyleoption.sip"
#include <qstyleoption.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.11/build/QtWidgets/sipQtWidgetsQStyleOptionSizeGrip.cpp"

#line 26 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.11/build/QtWidgets/sipQtWidgetsQStyleOptionSizeGrip.cpp"
#line 28 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.11/build/QtWidgets/sipQtWidgetsQStyleOptionSizeGrip.cpp"


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

    if (targetType == sipType_QStyleOptionSizeGrip)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_QStyleOptionComplex)->ctd_cast(static_cast< ::QStyleOptionComplex *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const ::QStyleOptionSizeGrip* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QStyleOptionSizeGrip[] = {{327, 255, 1}};

static sipEnumMemberDef enummembers_QStyleOptionSizeGrip[] = {
    {sipName_Type, static_cast<int>(::QStyleOptionSizeGrip::Type), 365},
    {sipName_Version, static_cast<int>(::QStyleOptionSizeGrip::Version), 366},
};


extern "C" {static PyObject *varget_QStyleOptionSizeGrip_corner(void *, PyObject *, PyObject *);}
static PyObject *varget_QStyleOptionSizeGrip_corner(void *sipSelf, PyObject *, PyObject *)
{
    ::Qt::Corner sipVal;
    ::QStyleOptionSizeGrip *sipCpp = reinterpret_cast< ::QStyleOptionSizeGrip *>(sipSelf);

    sipVal = sipCpp->corner;

    return sipConvertFromEnum(static_cast<int>(sipVal), sipType_Qt_Corner);
}


extern "C" {static int varset_QStyleOptionSizeGrip_corner(void *, PyObject *, PyObject *);}
static int varset_QStyleOptionSizeGrip_corner(void *sipSelf, PyObject *sipPy, PyObject *)
{
    ::Qt::Corner sipVal;
    ::QStyleOptionSizeGrip *sipCpp = reinterpret_cast< ::QStyleOptionSizeGrip *>(sipSelf);

    sipVal = (::Qt::Corner)sipConvertToEnum(sipPy, sipType_Qt_Corner);

    if (PyErr_Occurred() != SIP_NULLPTR)
        return -1;

    sipCpp->corner = sipVal;

    return 0;
}

sipVariableDef variables_QStyleOptionSizeGrip[] = {
    {InstanceVariable, sipName_corner, (PyMethodDef *)varget_QStyleOptionSizeGrip_corner, (PyMethodDef *)varset_QStyleOptionSizeGrip_corner, SIP_NULLPTR, SIP_NULLPTR},
};

PyDoc_STRVAR(doc_QStyleOptionSizeGrip, "\1QStyleOptionSizeGrip()\n"
"QStyleOptionSizeGrip(other: QStyleOptionSizeGrip)");


static pyqt5ClassPluginDef plugin_QStyleOptionSizeGrip = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWidgets_QStyleOptionSizeGrip = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QStyleOptionSizeGrip,
        SIP_NULLPTR,
        &plugin_QStyleOptionSizeGrip,
    },
    {
        sipNameNr_QStyleOptionSizeGrip,
        {0, 0, 1},
        0, SIP_NULLPTR,
        2, enummembers_QStyleOptionSizeGrip,
        1, variables_QStyleOptionSizeGrip,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QStyleOptionSizeGrip,
    -1,
    -1,
    supers_QStyleOptionSizeGrip,
    SIP_NULLPTR,
    init_type_QStyleOptionSizeGrip,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QStyleOptionSizeGrip,
    assign_QStyleOptionSizeGrip,
    array_QStyleOptionSizeGrip,
    copy_QStyleOptionSizeGrip,
    release_QStyleOptionSizeGrip,
    cast_QStyleOptionSizeGrip,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QStyleOptionSizeGrip,
    sizeof (::QStyleOptionSizeGrip),
};
