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
qgeorectangle_p.h
Go to the documentation of this file.
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
4#ifndef QGEORECTANGLE_P_H
5#define QGEORECTANGLE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qgeoshape_p.h"
19#include "qgeocoordinate.h"
20
21QT_BEGIN_NAMESPACE
22
23class QGeoRectanglePrivate : public QGeoShapePrivate
24{
25public:
26 QGeoRectanglePrivate();
27 QGeoRectanglePrivate(const QGeoCoordinate &topLeft, const QGeoCoordinate &bottomRight);
28 QGeoRectanglePrivate(const QGeoRectanglePrivate &other);
29 ~QGeoRectanglePrivate();
30
31 bool isValid() const override;
32 bool isEmpty() const override;
33 bool contains(const QGeoCoordinate &coordinate) const override;
34
35 QGeoCoordinate center() const override;
36
37 QGeoRectangle boundingGeoRectangle() const override;
38
39 void extendRectangle(const QGeoCoordinate &coordinate);
40
41 QGeoShapePrivate *clone() const override;
42
43 bool operator==(const QGeoShapePrivate &other) const override;
44
45 size_t hash(size_t seed) const override;
46
47 QGeoCoordinate topLeft;
48 QGeoCoordinate bottomRight;
49};
50
51QT_END_NAMESPACE
52
53#endif
Combined button and popup list for selecting options.