• 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
ScreenGraphicsItem.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_SCREENGRAPHICSITEM_H
12 #define MARBLE_SCREENGRAPHICSITEM_H
13 
14 // Marble
15 #include "MarbleGraphicsItem.h"
16 #include "marble_export.h"
17 
18 // Qt
19 #include <QList>
20 
21 class QPoint;
22 
23 namespace Marble
24 {
25 
26 class ViewportParams;
27 
28 class ScreenGraphicsItemPrivate;
29 
30 class MARBLE_EXPORT ScreenGraphicsItem : public MarbleGraphicsItem
31 {
32  public:
33  enum GraphicsItemFlag {
34  ItemIsMovable = 0x1,
35  ItemIsHideable = 0x2
36  };
37  Q_DECLARE_FLAGS(GraphicsItemFlags, GraphicsItemFlag)
38 
39  explicit ScreenGraphicsItem( MarbleGraphicsItem *parent = 0 );
40 
41  virtual ~ScreenGraphicsItem();
42 
53  void setPosition( const QPointF& position );
54 
64  QPointF position() const;
65 
74  QPointF positivePosition() const;
75 
84  QList<QPointF> absolutePositions() const;
85 
89  GraphicsItemFlags flags() const;
90 
95  void setFlags( GraphicsItemFlags flags );
96 
97  protected:
98  explicit ScreenGraphicsItem( ScreenGraphicsItemPrivate *d_ptr );
99 
100  virtual bool eventFilter( QObject *, QEvent * );
101 
102  private:
103  ScreenGraphicsItemPrivate *p();
104  const ScreenGraphicsItemPrivate *p() const;
105 };
106 
107 } // Namespace Marble
108 
109 #endif
QEvent
Marble::ScreenGraphicsItemPrivate
Definition: ScreenGraphicsItem_p.h:24
QPoint
QPointF
MarbleGraphicsItem.h
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::MarbleGraphicsItem
Definition: MarbleGraphicsItem.h:34
QList
Marble::ScreenGraphicsItem::GraphicsItemFlag
GraphicsItemFlag
Definition: ScreenGraphicsItem.h:33
marble_export.h
Marble::ScreenGraphicsItem
Definition: ScreenGraphicsItem.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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