/*
 * Interface wrapper code.
 *
 * Generated by SIP 4.19.6
 */

#include "sipAPIKWidgetsAddons.h"

#include <kstyleextensions.h>

#include <qstyle.h>
#include <qstring.h>
#include <qwidget.h>


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

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QWidget* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8", sipType_QString,&a0, &a0State, sipType_QWidget, &a1))
        {
             ::QStyle::SubElement sipRes;

            sipRes =  ::KStyleExtensions::customSubElement(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QWidget* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8", sipType_QString,&a0, &a0State, sipType_QWidget, &a1))
        {
             ::QStyle::StyleHint sipRes;

            sipRes =  ::KStyleExtensions::customStyleHint(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const  ::QString* a0;
        int a0State = 0;
        const  ::QWidget* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8", sipType_QString,&a0, &a0State, sipType_QWidget, &a1))
        {
             ::QStyle::ControlElement sipRes;

            sipRes =  ::KStyleExtensions::customControlElement(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


static PyMethodDef methods_KStyleExtensions[] = {
    {SIP_MLNAME_CAST(sipName_customControlElement), meth_KStyleExtensions_customControlElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customStyleHint), meth_KStyleExtensions_customStyleHint, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customSubElement), meth_KStyleExtensions_customSubElement, METH_VARARGS, NULL}
};


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


sipClassTypeDef sipTypeDef_KWidgetsAddons_KStyleExtensions = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_NAMESPACE,
        sipNameNr_KStyleExtensions,
        {0},
        &plugin_KStyleExtensions
    },
    {
        sipNameNr_KStyleExtensions,
        {0, 0, 1},
        3, methods_KStyleExtensions,
        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
};
