19 Q_PROPERTY(ShapeType type READ type)
20 Q_PROPERTY(
bool isValid READ isValid)
21 Q_PROPERTY(
bool isEmpty READ isEmpty)
22 Q_PROPERTY(QGeoCoordinate center READ center)
27 Q_INVOKABLE QGeoShape(
const QGeoShape &other);
38 ShapeType type()
const;
42 Q_INVOKABLE
bool contains(
const QGeoCoordinate &coordinate)
const;
43 Q_INVOKABLE QGeoRectangle boundingGeoRectangle()
const;
44 QGeoCoordinate center()
const;
46 friend bool operator==(
const QGeoShape &lhs,
const QGeoShape &rhs)
48 return equals(lhs, rhs);
50 friend bool operator!=(
const QGeoShape &lhs,
const QGeoShape &rhs)
52 return !equals(lhs, rhs);
55 QGeoShape &operator=(
const QGeoShape &other);
57 Q_INVOKABLE QString toString()
const;
59 QGeoShape(QGeoShapePrivate *d);
61 QSharedDataPointer<QGeoShapePrivate> d_ptr;
64 static bool equals(
const QGeoShape &lhs,
const QGeoShape &rhs);
65 inline QGeoShapePrivate *d_func();
66 inline const QGeoShapePrivate *d_func()
const;
67#ifndef QT_NO_DEBUG_STREAM
68 friend QDebug operator<<(QDebug dbg,
const QGeoShape &shape)
70 return debugStreaming(dbg, shape);
72 static QDebug debugStreaming(QDebug dbg,
const QGeoShape &shape);
74#ifndef QT_NO_DATASTREAM
75 friend QDataStream &operator<<(QDataStream &stream,
const QGeoShape &shape)
77 return dataStreamOut(stream, shape);
79 friend QDataStream &operator>>(QDataStream &stream, QGeoShape &shape)
81 return dataStreamIn(stream, shape);
83 static QDataStream &dataStreamOut(QDataStream &stream,
const QGeoShape &shape);
84 static QDataStream &dataStreamIn(QDataStream &stream, QGeoShape &shape);
86 friend Q_POSITIONING_EXPORT size_t qHash(
const QGeoShape &key, size_t seed)
noexcept;
89Q_POSITIONING_EXPORT size_t qHash(
const QGeoShape &shape, size_t seed = 0)
noexcept;