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 "MarbleGlobal.h"
10#include "GeoDataColorStyle.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
34 ~GeoDataBalloonStyle() override;
35
36 /** Provides type information for downcasting a GeoNode */
37 const char* nodeType() const override;
38
39 enum DisplayMode {
40 Default,
41 Hide
42 };
43
44 QColor backgroundColor() const;
45 void setBackgroundColor( const QColor &color );
46
47 QColor textColor() const;
48 void setTextColor( const QColor &color );
49
50 QString text() const;
51 void setText( const QString &text );
52
53 DisplayMode displayMode() const;
54 void setDisplayMode(DisplayMode mode );
55
56 void pack( QDataStream& stream ) const override;
57
58 void unpack( QDataStream& stream ) override;
59
60private:
61 GeoDataBalloonStylePrivate* const d;
62};
63
64}
65
66#endif
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
bool operator!=(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.