18#include <QtCore/private/qglobal_p.h>
23#define QMETATYPE_CONVERTER(To, From, assign_and_return) \
24 case makePair(QMetaType::To, QMetaType::From): \
28 const From &source = *static_cast<const From *>(from); \
29 To &result = *static_cast<To *>(to); \
32#define QMETATYPE_CONVERTER_ASSIGN(To, From) \
33 QMETATYPE_CONVERTER(To, From, result = To(source); return true;)
35#define QMETATYPE_CONVERTER_FUNCTION(To, assign_and_return) \
37 To &result = *static_cast<To *>(r); \
54 virtual bool convert(
const void *,
int,
void *,
int)
const {
return false; }
74#if QT_CONFIG(easingcurve)
81template<>
struct TypeDefinition<
QUrl> {
static const bool IsAvailable =
false; };
84#ifdef QT_NO_GEOM_VARIANT
85template<>
struct TypeDefinition<
QRect> {
static const bool IsAvailable =
false; };
86template<>
struct TypeDefinition<
QRectF> {
static const bool IsAvailable =
false; };
87template<>
struct TypeDefinition<
QSize> {
static const bool IsAvailable =
false; };
88template<>
struct TypeDefinition<
QSizeF> {
static const bool IsAvailable =
false; };
89template<>
struct TypeDefinition<
QLine> {
static const bool IsAvailable =
false; };
90template<>
struct TypeDefinition<
QLineF> {
static const bool IsAvailable =
false; };
91template<>
struct TypeDefinition<
QPoint> {
static const bool IsAvailable =
false; };
94#if !QT_CONFIG(regularexpression)
100#ifdef QT_NO_MATRIX4X4
112#ifdef QT_NO_QUATERNION
116template<>
struct TypeDefinition<
QIcon> {
static const bool IsAvailable =
false; };
124 return iface->typeId.loadRelaxed() == typeId;
127template <
typename FPo
inter>
133 Q_ASSERT(!isInterfaceFor<void>(iface));
135 return ptr !=
nullptr || (iface->flags & Flag) == 0;
159 return iface->revision < 1 ||
166 if (iface->defaultCtr)
167 iface->defaultCtr(iface, where);
169 memset(where, 0, iface->size);
176 iface->copyCtr(iface, where,
copy);
178 memcpy(where,
copy, iface->size);
185 iface->moveCtr(iface, where,
copy);
187 memcpy(where,
copy, iface->size);
202 iface->dtor(iface, where);
216#define QT_METATYPE_CONVERT_ID_TO_TYPE(MetaTypeName, MetaTypeId, RealName) \
217 case QMetaType::MetaTypeName: \
218 return QtMetaTypePrivate::getInterfaceFromType<RealName>();
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QCursor class provides a mouse cursor with an arbitrary shape.
The QIcon class provides scalable icons in different modes and states.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QQuaternion class represents a quaternion consisting of a vector and scalar.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
The QVector2D class represents a vector or vertex in 2D space.
The QVector3D class represents a vector or vertex in 3D space.
The QVector4D class represents a vector or vertex in 4D space.
Combined button and popup list for selecting options.
static jboolean copy(JNIEnv *, jobject)
static ControlElement< T > * ptr(QWidget *widget)
unsigned long long quint64