pysidemetafunction.h 927 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright (C) 2016 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. #ifndef PYSIDE_METAFUNCTION_H
  4. #define PYSIDE_METAFUNCTION_H
  5. #include <pysidemacros.h>
  6. #include <sbkpython.h>
  7. #include <QtCore/qobject.h>
  8. extern "C"
  9. {
  10. extern PYSIDE_API PyTypeObject *PySideMetaFunction_TypeF(void);
  11. struct PySideMetaFunctionPrivate;
  12. struct PYSIDE_API PySideMetaFunction
  13. {
  14. PyObject_HEAD
  15. PySideMetaFunctionPrivate *d;
  16. };
  17. }; //extern "C"
  18. namespace PySide::MetaFunction {
  19. /**
  20. * This function creates a MetaFunction object
  21. *
  22. * @param obj the QObject witch this fuction is part of
  23. * @param methodIndex The index of this function on MetaObject
  24. * @return Return a new reference of PySideMetaFunction
  25. **/
  26. PYSIDE_API PySideMetaFunction *newObject(QObject *obj, int methodIndex);
  27. } //namespace PySide::MetaFunction
  28. #endif