Marble

GeoDataBalloonStyle.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2012 Mohammed Nafees <[email protected]>
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 
15 namespace Marble
16 {
17 
18 class GeoDataBalloonStylePrivate;
19 
20 /**
21  */
22 class GEODATA_EXPORT GeoDataBalloonStyle : public GeoDataColorStyle
23 {
24 public:
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 
60 private:
61  GeoDataBalloonStylePrivate* const d;
62 };
63 
64 }
65 
66 #endif
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
bool operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.