• 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
  • graphicsview
LabelGraphicsItem.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 2009 Bastian Holst <bastianholst@gmx.de>
9 //
10 
11 #ifndef MARBLE_LABELGRAPHICSITEM_H
12 #define MARBLE_LABELGRAPHICSITEM_H
13 
14 // Marble
15 #include "FrameGraphicsItem.h"
16 #include "marble_export.h"
17 
18 class QImage;
19 class QIcon;
20 
21 namespace Marble
22 {
23 
24 class LabelGraphicsItemPrivate;
25 
31 class MARBLE_EXPORT LabelGraphicsItem : public FrameGraphicsItem
32 {
33  public:
34  explicit LabelGraphicsItem( MarbleGraphicsItem *parent = 0 );
35  ~LabelGraphicsItem();
36 
37  void setContentSize( const QSizeF &contentSize );
38 
39  QString text() const;
40  void setText( const QString& text );
41 
42  QImage image() const;
43  void setImage( const QImage& image, const QSize& size = QSize() );
44 
45  QIcon icon() const;
46  void setIcon( const QIcon& icon, const QSize& size );
47 
48  void setMinimumSize( const QSizeF& size );
49  QSizeF minimumSize() const;
50 
51  void clear();
52 
53  protected:
54  void paintContent( QPainter *painter );
55 
56  private:
57  Q_DISABLE_COPY( LabelGraphicsItem )
58 
59  LabelGraphicsItemPrivate * const d;
60 };
61 
62 } // namespace Marble
63 
64 #endif
Marble::FrameGraphicsItem
Definition: FrameGraphicsItem.h:25
Marble::LabelGraphicsItemPrivate
Definition: LabelGraphicsItem_p.h:26
FrameGraphicsItem.h
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QPainter
Marble::MarbleGraphicsItem
Definition: MarbleGraphicsItem.h:34
QString
QSize
QImage
QSizeF
marble_export.h
Marble::LabelGraphicsItem
A label item provides an Item that displays text or images/pixmaps.
Definition: LabelGraphicsItem.h:31
QIcon
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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