MapLibre Native for Qt
Loading...
Searching...
No Matches
image_parameter.hpp
1// Copyright (C) 2023 MapLibre contributors
2
3// SPDX-License-Identifier: BSD-2-Clause
4
5#ifndef QMAPLIBRE_IMAGE_PARAMETER_H
6#define QMAPLIBRE_IMAGE_PARAMETER_H
7
8#include "style_parameter.hpp"
9
10#include <QMapLibre/Export>
11
12#include <QtCore/QObject>
13#include <QtCore/QString>
14
15namespace QMapLibre {
16
17class Q_MAPLIBRE_CORE_EXPORT ImageParameter : public StyleParameter {
18 Q_OBJECT
19public:
20 explicit ImageParameter(QObject *parent = nullptr);
21 ~ImageParameter() override;
22
23 [[nodiscard]] QString source() const;
24 void setSource(const QString &source);
25
26Q_SIGNALS:
28
29protected:
30 QString m_source;
31
32 Q_DISABLE_COPY(ImageParameter)
33};
34
35} // namespace QMapLibre
36
37#endif // QMAPLIBRE_IMAGE_PARAMETER_H
A helper utility to manage image sources.
Definition image_parameter.hpp:17
QString m_source
image source
Definition image_parameter.hpp:30
void sourceUpdated()
Signal emitted when the image source is updated.
A base class to pass style parameters to Map.
Definition style_parameter.hpp:16
Definition geojson.cpp:10