Marble

GeoDataVec2.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2012 Mohammed Nafees <nafees.technocool@gmail.com>
4//
5
6#ifndef GEODATAVEC2_H
7#define GEODATAVEC2_H
8
9#include "geodata_export.h"
10#include <QPointF>
11
12class QString;
13
14namespace Marble
15{
16
17class GeoDataVec2Private;
18
19class GEODATA_EXPORT GeoDataVec2 : public QPointF
20{
21public:
22 enum Unit {
23 Fraction,
24 Pixels,
25 InsetPixels
26 };
27
28 GeoDataVec2();
29
30 GeoDataVec2(qreal x, qreal y, const QString &xunit, const QString &yunit);
31
32 GeoDataVec2(const GeoDataVec2 &other);
33
34 GeoDataVec2 &operator=(const GeoDataVec2 &other);
35 bool operator==(const GeoDataVec2 &other) const;
36 bool operator!=(const GeoDataVec2 &other) const;
37 ~GeoDataVec2();
38
39 Unit xunit() const;
40 void setXunits(Unit xunit);
41
42 Unit yunit() const;
43 void setYunits(Unit yunit);
44
45private:
46 GeoDataVec2Private *const d;
47};
48
49}
50
51#endif
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
bool operator==(const StyleDelim &l, const StyleDelim &r)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.