diff options
Diffstat (limited to 'sources/pyside6/libpyside/class_property.h')
-rw-r--r-- | sources/pyside6/libpyside/class_property.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sources/pyside6/libpyside/class_property.h b/sources/pyside6/libpyside/class_property.h new file mode 100644 index 000000000..f2ed29f1f --- /dev/null +++ b/sources/pyside6/libpyside/class_property.h @@ -0,0 +1,43 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef CLASS_PROPERTY_H +#define CLASS_PROPERTY_H + +#include "pysidemacros.h" +#include <sbkpython.h> + +extern "C" { + +struct propertyobject { + PyObject_HEAD + PyObject *prop_get; + PyObject *prop_set; + PyObject *prop_del; + PyObject *prop_doc; + int getter_doc; +}; + +struct propertyobject310 { + PyObject_HEAD + PyObject *prop_get; + PyObject *prop_set; + PyObject *prop_del; + PyObject *prop_doc; + // Note: This is a problem with Limited API: We have no direct access. + // You need to pick it from runtime info. + PyObject *prop_name; + int getter_doc; +}; + +PYSIDE_API PyTypeObject *PyClassProperty_TypeF(); + +} // extern "C" + +namespace PySide::ClassProperty { + +PYSIDE_API void init(PyObject *module); + +} // namespace PySide::ClassProperty + +#endif // CLASS_PROPERTY_H |