Marble

GeoDataLabelStyle.h
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2007 Murad Tagirov <[email protected]>
9 // Copyright 2007 Inge Wallin <[email protected]>
10 //
11 
12 
13 #ifndef MARBLE_GEODATALABELSTYLE_H
14 #define MARBLE_GEODATALABELSTYLE_H
15 
16 #include "GeoDataColorStyle.h"
17 
18 #include "geodata_export.h"
19 
20 class QFont;
21 
22 namespace Marble
23 {
24 
25 class GeoDataLabelStylePrivate;
26 
35 class GEODATA_EXPORT GeoDataLabelStyle : public GeoDataColorStyle
36 {
37  public:
38  enum Alignment{Corner, Center, Right /*, Left, Below */};
39 
42  GeoDataLabelStyle( const GeoDataLabelStyle& other );
48  GeoDataLabelStyle( const QFont &font, const QColor &color );
49 
50  ~GeoDataLabelStyle() override;
51 
55  GeoDataLabelStyle& operator=( const GeoDataLabelStyle& other );
56 
57  bool operator==( const GeoDataLabelStyle &other ) const;
58  bool operator!=( const GeoDataLabelStyle &other ) const;
59 
61  const char* nodeType() const override;
62 
67  void setScale(float scale);
72  float scale() const;
77  void setAlignment ( GeoDataLabelStyle::Alignment alignment );
82  GeoDataLabelStyle::Alignment alignment() const;
87  void setFont( const QFont &font );
92  QFont font() const;
93 
98  QFont scaledFont() const;
99 
104  bool glow() const;
105 
113  void setGlow( bool on );
114 
119  void pack( QDataStream& stream ) const override;
124  void unpack( QDataStream& stream ) override;
125 
126  private:
127  GeoDataLabelStylePrivate * const d;
128 };
129 
130 }
131 
132 #endif
Binds a QML item to a specific geodetic location in screen coordinates.
an abstract base class for various style classes
specifies how the name of a GeoDataFeature is drawn
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 5 2020 23:20:13 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.