• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataLabelStyle.h
Go to the documentation of this file.
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 <tmurad@gmail.com>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 //
11 
12 
13 #ifndef MARBLE_GEODATALABELSTYLE_H
14 #define MARBLE_GEODATALABELSTYLE_H
15 
16 
17 #include <QFont>
18 
19 #include "GeoDataColorStyle.h"
20 
21 #include "geodata_export.h"
22 
23 namespace Marble
24 {
25 
26 class GeoDataLabelStylePrivate;
27 
36 class GEODATA_EXPORT GeoDataLabelStyle : public GeoDataColorStyle
37 {
38  public:
39  enum Alignment{Corner, Center /*, Left, Right, Below */};
40 
42  GeoDataLabelStyle();
43  GeoDataLabelStyle( const GeoDataLabelStyle& other );
49  GeoDataLabelStyle( const QFont &font, const QColor &color );
50 
51  ~GeoDataLabelStyle();
52 
56  GeoDataLabelStyle& operator=( const GeoDataLabelStyle& other );
57 
58  bool operator==( const GeoDataLabelStyle &other ) const;
59  bool operator!=( const GeoDataLabelStyle &other ) const;
60 
62  virtual const char* nodeType() const;
63 
68  void setScale( const float &scale );
73  float scale() const;
78  void setAlignment ( GeoDataLabelStyle::Alignment alignment );
83  GeoDataLabelStyle::Alignment alignment() const;
88  void setFont( const QFont &font );
93  QFont font() const;
94 
99  bool glow() const;
100 
108  void setGlow( bool on );
109 
114  virtual void pack( QDataStream& stream ) const;
119  virtual void unpack( QDataStream& stream );
120 
121  private:
122  GeoDataLabelStylePrivate * const d;
123 };
124 
125 }
126 
127 #endif
GeoDataColorStyle.h
QDataStream
QFont
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataLabelStyle::Alignment
Alignment
Definition: GeoDataLabelStyle.h:39
Marble::GeoDataColorStyle
an abstract base class for various style classes
Definition: GeoDataColorStyle.h:64
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
QColor
Marble::GeoDataLabelStyle
specifies how the name of a GeoDataFeature is drawn
Definition: GeoDataLabelStyle.h:36
Marble::GeoDataLabelStyle::Corner
Definition: GeoDataLabelStyle.h:39
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal