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

marble

  • sources
  • kde-4.12
  • 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 
59  virtual const char* nodeType() const;
60 
65  void setScale( const float &scale );
70  float scale() const;
75  void setAlignment ( GeoDataLabelStyle::Alignment alignment );
80  GeoDataLabelStyle::Alignment alignment() const;
85  void setFont( const QFont &font );
90  QFont font() const;
91 
96  bool glow() const;
97 
105  void setGlow( bool on );
106 
111  virtual void pack( QDataStream& stream ) const;
116  virtual void unpack( QDataStream& stream );
117 
118  private:
119  GeoDataLabelStylePrivate * const d;
120 };
121 
122 }
123 
124 #endif
GeoDataColorStyle.h
Marble::GeoDataLabelStyle::Alignment
Alignment
Definition: GeoDataLabelStyle.h:39
Marble::GeoDataColorStyle
an abstract base class for various style classes
Definition: GeoDataColorStyle.h:64
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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