KOSMIndoorMap

mappointerevent.h
1/*
2 SPDX-FileCopyrightText: 2024 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KOSMINDOORMAP_MAPPOINTEREVENT_H
7#define KOSMINDOORMAP_MAPPOINTEREVENT_H
8
9#include "osmelement.h"
10
11#include <QPointF>
12#include <QQmlEngine>
13
14namespace KOSMIndoorMap {
15
16/** Data type for mouse/touch events on the map. */
18{
19 Q_GADGET
20 QML_ELEMENT
21 QML_VALUE_TYPE(mapPointerEvent)
22 QML_STRUCTURED_VALUE
23 Q_PROPERTY(KOSMIndoorMap::OSMElement element MEMBER m_element)
24 Q_PROPERTY(QPointF geoPosition MEMBER m_geoPos)
25 Q_PROPERTY(QPointF screenPosition MEMBER m_screenPos)
26 Q_PROPERTY(Qt::MouseButton button MEMBER m_button)
27 Q_PROPERTY(int modifiers MEMBER m_modifiers)
28
29private:
30 OSMElement m_element;
31 QPointF m_geoPos;
32 QPointF m_screenPos;
34 int m_modifiers = 0;
35};
36
37}
38
39#endif // KOSMINDOORMAP_MAPPOINTEREVENT_H
Data type for mouse/touch events on the map.
QML wrapper around an OSM element.
Definition osmelement.h:21
OSM-based multi-floor indoor maps for buildings.
MouseButton
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.