Marble

GeoDataBalloonStyle.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 GEODATABALLOONSTYLE_H
7#define GEODATABALLOONSTYLE_H
8
9#include "GeoDataColorStyle.h"
10#include "MarbleGlobal.h"
11#include "geodata_export.h"
12
13#include <QColor>
14
15namespace Marble
16{
17
18class GeoDataBalloonStylePrivate;
19
20/**
21 */
22class GEODATA_EXPORT GeoDataBalloonStyle : public GeoDataColorStyle
23{
24public:
25 GeoDataBalloonStyle();
26
27 GeoDataBalloonStyle(const GeoDataBalloonStyle &other);
28
29 GeoDataBalloonStyle &operator=(const GeoDataBalloonStyle &other);
30 bool operator==(const GeoDataBalloonStyle &other) const;
31 bool operator!=(const GeoDataBalloonStyle &other) const;
32
33 ~GeoDataBalloonStyle() override;
34
35 /** Provides type information for downcasting a GeoNode */
36 const char *nodeType() const override;
37
38 enum DisplayMode {
39 Default,
40 Hide
41 };
42
43 QColor backgroundColor() const;
44 void setBackgroundColor(const QColor &color);
45
46 QColor textColor() const;
47 void setTextColor(const QColor &color);
48
49 QString text() const;
50 void setText(const QString &text);
51
52 DisplayMode displayMode() const;
53 void setDisplayMode(DisplayMode mode);
54
55 void pack(QDataStream &stream) const override;
56
57 void unpack(QDataStream &stream) override;
58
59private:
60 GeoDataBalloonStylePrivate *const d;
61};
62
63}
64
65#endif
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
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 Mon Nov 4 2024 16:37:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.