marble
#include <ScreenGraphicsItem.h>

Public Types | |
enum | GraphicsItemFlag { ItemIsMovable = 0x1, ItemIsHideable = 0x2 } |
![]() | |
enum | CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache } |
Public Member Functions | |
ScreenGraphicsItem (MarbleGraphicsItem *parent=0) | |
virtual | ~ScreenGraphicsItem () |
QList< QPointF > | absolutePositions () const |
GraphicsItemFlags | flags () const |
QPointF | position () const |
QPointF | positivePosition () const |
void | setFlags (GraphicsItemFlags flags) |
void | setPosition (const QPointF &position) |
![]() | |
virtual | ~MarbleGraphicsItem () |
CacheMode | cacheMode () const |
bool | contains (const QPointF &point) const |
virtual QRectF | contentRect () const |
virtual QSizeF | contentSize () const |
void | hide () |
AbstractMarbleGraphicsLayout * | layout () const |
bool | paintEvent (QPainter *painter, const ViewportParams *viewport) |
void | setCacheMode (CacheMode mode) |
virtual void | setContentSize (const QSizeF &size) |
void | setLayout (AbstractMarbleGraphicsLayout *layout) |
virtual void | setProjection (const ViewportParams *viewport) |
void | setSize (const QSizeF &size) |
void | setVisible (bool visible) |
void | show () |
QSizeF | size () const |
bool | visible () const |
Protected Member Functions | |
ScreenGraphicsItem (ScreenGraphicsItemPrivate *d_ptr) | |
virtual bool | eventFilter (QObject *, QEvent *) |
![]() | |
MarbleGraphicsItem (MarbleGraphicsItemPrivate *d_ptr) | |
virtual void | paint (QPainter *painter) |
void | update () |
Additional Inherited Members | |
![]() | |
MarbleGraphicsItemPrivate *const | d |
Detailed Description
Definition at line 30 of file ScreenGraphicsItem.h.
Member Enumeration Documentation
Enumerator | |
---|---|
ItemIsMovable | |
ItemIsHideable |
Definition at line 33 of file ScreenGraphicsItem.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 25 of file ScreenGraphicsItem.cpp.
|
virtual |
Definition at line 35 of file ScreenGraphicsItem.cpp.
|
explicitprotected |
Definition at line 30 of file ScreenGraphicsItem.cpp.
Member Function Documentation
QList< QPointF > ScreenGraphicsItem::absolutePositions | ( | ) | const |
Return the absolute position of the ScreenGraphicsItem.
All coordinates are counted positive and depend on the current viewport.
Positive x-coordinates are counted left-aligned from the left border of the map. Positive y-coordinates are counted top-aligned from the top border of the map.
Definition at line 54 of file ScreenGraphicsItem.cpp.
|
protectedvirtual |
Reimplemented from Marble::MarbleGraphicsItem.
Reimplemented in Marble::AbstractFloatItem, Marble::OverviewMap, Marble::ElevationProfileFloatItem, Marble::NavigationFloatItem, Marble::FileViewFloatItem, Marble::ProgressFloatItem, Marble::RoutingPlugin, Marble::License, and Marble::WidgetGraphicsItem.
Definition at line 69 of file ScreenGraphicsItem.cpp.
ScreenGraphicsItem::GraphicsItemFlags ScreenGraphicsItem::flags | ( | ) | const |
Returns the flags of the item.
Definition at line 59 of file ScreenGraphicsItem.cpp.
QPointF ScreenGraphicsItem::position | ( | ) | const |
Return the position of the ScreenGraphicsItem.
Positive x-coordinates are counted left-aligned from the left border of the parent item. Negative x-coordinates are counted right-aligned from the right border of the parent item.
Positive y-coordinates are counted top-aligned from the top border of the parent item. Negative y-coordinates are counted right-aligned from the bottom border of the parent item.
Definition at line 39 of file ScreenGraphicsItem.cpp.
QPointF ScreenGraphicsItem::positivePosition | ( | ) | const |
Return the positive position of the ScreenGraphicsItem.
All coordinates are counted positive and depend on the current viewport.
Positive x-coordinates are counted left-aligned from the left border of the parent item. Positive y-coordinates are counted top-aligned from the top border of the parent item.
Definition at line 49 of file ScreenGraphicsItem.cpp.
void ScreenGraphicsItem::setFlags | ( | GraphicsItemFlags | flags | ) |
Sets the flags to flags.
All flags in flags will be enabled and all other flags will be disabled. By default all flags are disabled.
Definition at line 64 of file ScreenGraphicsItem.cpp.
void ScreenGraphicsItem::setPosition | ( | const QPointF & | position | ) |
Set the position of the ScreenGraphicsItem.
- Parameters
-
pos Position
Positive x-coordinates are counted left-aligned from the left border of the parent item. Negative x-coordinates are counted right-aligned from the right border of the parent item.
Positive y-coordinates are counted top-aligned from the top border of the parent item. Negative y-coordinates are counted right-aligned from the bottom border of the parent item.
Definition at line 44 of file ScreenGraphicsItem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.