Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qnativeinterface_p.h File Reference

(039677408eb1acb6bf1c5afcdfcda7be93e67f17)

#include <QtCore/private/qglobal_p.h>
#include <QtCore/qloggingcategory.h>
Include dependency graph for qnativeinterface_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QT_DEFINE_NATIVE_INTERFACE_2(Namespace, InterfaceClass)
#define QT_DEFINE_NATIVE_INTERFACE(...)
#define QT_DEFINE_PRIVATE_NATIVE_INTERFACE(...)
#define QT_NATIVE_INTERFACE_RETURN_IF(NativeInterface, baseType)

Macro Definition Documentation

◆ QT_DEFINE_NATIVE_INTERFACE

#define QT_DEFINE_NATIVE_INTERFACE ( ...)
Value:
#define QT_DEFINE_NATIVE_INTERFACE(...)
#define QT_OVERLOADED_MACRO(MACRO,...)
Definition qoverload.h:76

Definition at line 29 of file qnativeinterface_p.h.

◆ QT_DEFINE_NATIVE_INTERFACE_2

#define QT_DEFINE_NATIVE_INTERFACE_2 ( Namespace,
InterfaceClass )
Value:
QT_PREPEND_NAMESPACE(Namespace)::InterfaceClass::~InterfaceClass() = default

Definition at line 26 of file qnativeinterface_p.h.

◆ QT_DEFINE_PRIVATE_NATIVE_INTERFACE

#define QT_DEFINE_PRIVATE_NATIVE_INTERFACE ( ...)

◆ QT_NATIVE_INTERFACE_RETURN_IF

#define QT_NATIVE_INTERFACE_RETURN_IF ( NativeInterface,
baseType )
Value:
{ \
qCDebug(lcNativeInterface, "Comparing requested interface name %s with available %s", \
name, TypeInfo<NativeInterface>::name()); \
if (qstrcmp(name, TypeInfo<NativeInterface>::name()) == 0) { \
qCDebug(lcNativeInterface, \
"Match for interface %s. Comparing revisions (requested %d / available %d)", \
name, revision, TypeInfo<NativeInterface>::revision()); \
if (revision == TypeInfo<NativeInterface>::revision()) { \
qCDebug(lcNativeInterface, "Full match. Returning dynamic cast of %p", baseType); \
return dynamic_cast<NativeInterface *>(baseType); \
} else { \
qCWarning(lcNativeInterface, \
"Native interface revision mismatch (requested %d / available %d) for " \
"interface %s", \
revision, TypeInfo<NativeInterface>::revision(), name); \
return nullptr; \
} \
} else { \
qCDebug(lcNativeInterface, "No match for requested interface name %s", name); \
} \
}
Q_CORE_EXPORT int qstrcmp(const char *str1, const char *str2)
EGLImageKHR EGLint * name

Definition at line 34 of file qnativeinterface_p.h.