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

#line 24 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/sip/qscicommand.sip"
#include <Qsci/qscicommand.h>
#line 29 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/build/Qsci/sipQsciQsciCommand.cpp"

#line 24 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/sip/qsciscintilla.sip"
#include <Qsci/qsciscintilla.h>
#line 33 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/build/Qsci/sipQsciQsciCommand.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 36 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/build/Qsci/sipQsciQsciCommand.cpp"


PyDoc_STRVAR(doc_QsciCommand_command, "command(self) -> QsciCommand.Command");

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

    {
        const ::QsciCommand *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QsciCommand, &sipCpp))
        {
            ::QsciCommand::Command sipRes;

            sipRes = sipCpp->command();

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

    sipNoMethod(sipParseErr, sipName_QsciCommand, sipName_command, doc_QsciCommand_command);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommand_execute, "execute(self)");

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

    {
        ::QsciCommand *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommand, sipName_execute, doc_QsciCommand_execute);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommand_setKey, "setKey(self, key: int)");

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

    {
        int a0;
        ::QsciCommand *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QsciCommand, &sipCpp, &a0))
        {
            sipCpp->setKey(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommand, sipName_setKey, doc_QsciCommand_setKey);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommand_setAlternateKey, "setAlternateKey(self, altkey: int)");

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

    {
        int a0;
        ::QsciCommand *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QsciCommand, &sipCpp, &a0))
        {
            sipCpp->setAlternateKey(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommand, sipName_setAlternateKey, doc_QsciCommand_setAlternateKey);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommand_key, "key(self) -> int");

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

    {
        const ::QsciCommand *sipCpp;

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

            sipRes = sipCpp->key();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommand, sipName_key, doc_QsciCommand_key);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommand_alternateKey, "alternateKey(self) -> int");

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

    {
        const ::QsciCommand *sipCpp;

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

            sipRes = sipCpp->alternateKey();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommand, sipName_alternateKey, doc_QsciCommand_alternateKey);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QsciCommand_validKey, "validKey(key: int) -> bool");

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

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "Ci", &sipSelf, &a0))
        {
            bool sipRes;

            sipRes = ::QsciCommand::validKey(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QsciCommand, sipName_validKey, doc_QsciCommand_validKey);

    return SIP_NULLPTR;
}


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

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

    {
        const ::QsciCommand *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QsciCommand, sipName_description, doc_QsciCommand_description);

    return SIP_NULLPTR;
}


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


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


static PyMethodDef methods_QsciCommand[] = {
    {sipName_alternateKey, meth_QsciCommand_alternateKey, METH_VARARGS, doc_QsciCommand_alternateKey},
    {sipName_command, meth_QsciCommand_command, METH_VARARGS, doc_QsciCommand_command},
    {sipName_description, meth_QsciCommand_description, METH_VARARGS, doc_QsciCommand_description},
    {sipName_execute, meth_QsciCommand_execute, METH_VARARGS, doc_QsciCommand_execute},
    {sipName_key, meth_QsciCommand_key, METH_VARARGS, doc_QsciCommand_key},
    {sipName_setAlternateKey, meth_QsciCommand_setAlternateKey, METH_VARARGS, doc_QsciCommand_setAlternateKey},
    {sipName_setKey, meth_QsciCommand_setKey, METH_VARARGS, doc_QsciCommand_setKey},
    {sipName_validKey, meth_QsciCommand_validKey, METH_VARARGS, doc_QsciCommand_validKey}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QsciCommand[] = {
    {sipName_LineDown, static_cast<int>(::QsciCommand::LineDown)},
    {sipName_LineDownExtend, static_cast<int>(::QsciCommand::LineDownExtend)},
    {sipName_LineDownRectExtend, static_cast<int>(::QsciCommand::LineDownRectExtend)},
    {sipName_LineScrollDown, static_cast<int>(::QsciCommand::LineScrollDown)},
    {sipName_LineUp, static_cast<int>(::QsciCommand::LineUp)},
    {sipName_LineUpExtend, static_cast<int>(::QsciCommand::LineUpExtend)},
    {sipName_LineUpRectExtend, static_cast<int>(::QsciCommand::LineUpRectExtend)},
    {sipName_LineScrollUp, static_cast<int>(::QsciCommand::LineScrollUp)},
    {sipName_ScrollToStart, static_cast<int>(::QsciCommand::ScrollToStart)},
    {sipName_ScrollToEnd, static_cast<int>(::QsciCommand::ScrollToEnd)},
    {sipName_VerticalCentreCaret, static_cast<int>(::QsciCommand::VerticalCentreCaret)},
    {sipName_ParaDown, static_cast<int>(::QsciCommand::ParaDown)},
    {sipName_ParaDownExtend, static_cast<int>(::QsciCommand::ParaDownExtend)},
    {sipName_ParaUp, static_cast<int>(::QsciCommand::ParaUp)},
    {sipName_ParaUpExtend, static_cast<int>(::QsciCommand::ParaUpExtend)},
    {sipName_CharLeft, static_cast<int>(::QsciCommand::CharLeft)},
    {sipName_CharLeftExtend, static_cast<int>(::QsciCommand::CharLeftExtend)},
    {sipName_CharLeftRectExtend, static_cast<int>(::QsciCommand::CharLeftRectExtend)},
    {sipName_CharRight, static_cast<int>(::QsciCommand::CharRight)},
    {sipName_CharRightExtend, static_cast<int>(::QsciCommand::CharRightExtend)},
    {sipName_CharRightRectExtend, static_cast<int>(::QsciCommand::CharRightRectExtend)},
    {sipName_WordLeft, static_cast<int>(::QsciCommand::WordLeft)},
    {sipName_WordLeftExtend, static_cast<int>(::QsciCommand::WordLeftExtend)},
    {sipName_WordRight, static_cast<int>(::QsciCommand::WordRight)},
    {sipName_WordRightExtend, static_cast<int>(::QsciCommand::WordRightExtend)},
    {sipName_WordLeftEnd, static_cast<int>(::QsciCommand::WordLeftEnd)},
    {sipName_WordLeftEndExtend, static_cast<int>(::QsciCommand::WordLeftEndExtend)},
    {sipName_WordRightEnd, static_cast<int>(::QsciCommand::WordRightEnd)},
    {sipName_WordRightEndExtend, static_cast<int>(::QsciCommand::WordRightEndExtend)},
    {sipName_WordPartLeft, static_cast<int>(::QsciCommand::WordPartLeft)},
    {sipName_WordPartLeftExtend, static_cast<int>(::QsciCommand::WordPartLeftExtend)},
    {sipName_WordPartRight, static_cast<int>(::QsciCommand::WordPartRight)},
    {sipName_WordPartRightExtend, static_cast<int>(::QsciCommand::WordPartRightExtend)},
    {sipName_Home, static_cast<int>(::QsciCommand::Home)},
    {sipName_HomeExtend, static_cast<int>(::QsciCommand::HomeExtend)},
    {sipName_HomeRectExtend, static_cast<int>(::QsciCommand::HomeRectExtend)},
    {sipName_HomeDisplay, static_cast<int>(::QsciCommand::HomeDisplay)},
    {sipName_HomeDisplayExtend, static_cast<int>(::QsciCommand::HomeDisplayExtend)},
    {sipName_HomeWrap, static_cast<int>(::QsciCommand::HomeWrap)},
    {sipName_HomeWrapExtend, static_cast<int>(::QsciCommand::HomeWrapExtend)},
    {sipName_VCHome, static_cast<int>(::QsciCommand::VCHome)},
    {sipName_VCHomeExtend, static_cast<int>(::QsciCommand::VCHomeExtend)},
    {sipName_VCHomeRectExtend, static_cast<int>(::QsciCommand::VCHomeRectExtend)},
    {sipName_VCHomeWrap, static_cast<int>(::QsciCommand::VCHomeWrap)},
    {sipName_VCHomeWrapExtend, static_cast<int>(::QsciCommand::VCHomeWrapExtend)},
    {sipName_LineEnd, static_cast<int>(::QsciCommand::LineEnd)},
    {sipName_LineEndExtend, static_cast<int>(::QsciCommand::LineEndExtend)},
    {sipName_LineEndRectExtend, static_cast<int>(::QsciCommand::LineEndRectExtend)},
    {sipName_LineEndDisplay, static_cast<int>(::QsciCommand::LineEndDisplay)},
    {sipName_LineEndDisplayExtend, static_cast<int>(::QsciCommand::LineEndDisplayExtend)},
    {sipName_LineEndWrap, static_cast<int>(::QsciCommand::LineEndWrap)},
    {sipName_LineEndWrapExtend, static_cast<int>(::QsciCommand::LineEndWrapExtend)},
    {sipName_DocumentStart, static_cast<int>(::QsciCommand::DocumentStart)},
    {sipName_DocumentStartExtend, static_cast<int>(::QsciCommand::DocumentStartExtend)},
    {sipName_DocumentEnd, static_cast<int>(::QsciCommand::DocumentEnd)},
    {sipName_DocumentEndExtend, static_cast<int>(::QsciCommand::DocumentEndExtend)},
    {sipName_PageUp, static_cast<int>(::QsciCommand::PageUp)},
    {sipName_PageUpExtend, static_cast<int>(::QsciCommand::PageUpExtend)},
    {sipName_PageUpRectExtend, static_cast<int>(::QsciCommand::PageUpRectExtend)},
    {sipName_PageDown, static_cast<int>(::QsciCommand::PageDown)},
    {sipName_PageDownExtend, static_cast<int>(::QsciCommand::PageDownExtend)},
    {sipName_PageDownRectExtend, static_cast<int>(::QsciCommand::PageDownRectExtend)},
    {sipName_StutteredPageUp, static_cast<int>(::QsciCommand::StutteredPageUp)},
    {sipName_StutteredPageUpExtend, static_cast<int>(::QsciCommand::StutteredPageUpExtend)},
    {sipName_StutteredPageDown, static_cast<int>(::QsciCommand::StutteredPageDown)},
    {sipName_StutteredPageDownExtend, static_cast<int>(::QsciCommand::StutteredPageDownExtend)},
    {sipName_Delete, static_cast<int>(::QsciCommand::Delete)},
    {sipName_DeleteBack, static_cast<int>(::QsciCommand::DeleteBack)},
    {sipName_DeleteBackNotLine, static_cast<int>(::QsciCommand::DeleteBackNotLine)},
    {sipName_DeleteWordLeft, static_cast<int>(::QsciCommand::DeleteWordLeft)},
    {sipName_DeleteWordRight, static_cast<int>(::QsciCommand::DeleteWordRight)},
    {sipName_DeleteWordRightEnd, static_cast<int>(::QsciCommand::DeleteWordRightEnd)},
    {sipName_DeleteLineLeft, static_cast<int>(::QsciCommand::DeleteLineLeft)},
    {sipName_DeleteLineRight, static_cast<int>(::QsciCommand::DeleteLineRight)},
    {sipName_LineDelete, static_cast<int>(::QsciCommand::LineDelete)},
    {sipName_LineCut, static_cast<int>(::QsciCommand::LineCut)},
    {sipName_LineCopy, static_cast<int>(::QsciCommand::LineCopy)},
    {sipName_LineTranspose, static_cast<int>(::QsciCommand::LineTranspose)},
    {sipName_LineDuplicate, static_cast<int>(::QsciCommand::LineDuplicate)},
    {sipName_SelectAll, static_cast<int>(::QsciCommand::SelectAll)},
    {sipName_MoveSelectedLinesUp, static_cast<int>(::QsciCommand::MoveSelectedLinesUp)},
    {sipName_MoveSelectedLinesDown, static_cast<int>(::QsciCommand::MoveSelectedLinesDown)},
    {sipName_SelectionDuplicate, static_cast<int>(::QsciCommand::SelectionDuplicate)},
    {sipName_SelectionLowerCase, static_cast<int>(::QsciCommand::SelectionLowerCase)},
    {sipName_SelectionUpperCase, static_cast<int>(::QsciCommand::SelectionUpperCase)},
    {sipName_SelectionCut, static_cast<int>(::QsciCommand::SelectionCut)},
    {sipName_SelectionCopy, static_cast<int>(::QsciCommand::SelectionCopy)},
    {sipName_Paste, static_cast<int>(::QsciCommand::Paste)},
    {sipName_EditToggleOvertype, static_cast<int>(::QsciCommand::EditToggleOvertype)},
    {sipName_Newline, static_cast<int>(::QsciCommand::Newline)},
    {sipName_Formfeed, static_cast<int>(::QsciCommand::Formfeed)},
    {sipName_Tab, static_cast<int>(::QsciCommand::Tab)},
    {sipName_Backtab, static_cast<int>(::QsciCommand::Backtab)},
    {sipName_Cancel, static_cast<int>(::QsciCommand::Cancel)},
    {sipName_Undo, static_cast<int>(::QsciCommand::Undo)},
    {sipName_Redo, static_cast<int>(::QsciCommand::Redo)},
    {sipName_ZoomIn, static_cast<int>(::QsciCommand::ZoomIn)},
    {sipName_ZoomOut, static_cast<int>(::QsciCommand::ZoomOut)},
    {sipName_ReverseLines, static_cast<int>(::QsciCommand::ReverseLines)},
    {0, 0}
};


sipClassTypeDef sipTypeDef_Qsci_QsciCommand = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QsciCommand,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QsciCommand,
        {0, 0, 1},
        8, methods_QsciCommand,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QsciCommand, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QsciCommand,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QsciCommand,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
