marble
#include <ScreenGraphicsItem.h>
Public Types | |
enum | GraphicsItemFlag { ItemIsMovable = 0x1, ItemIsHideable = 0x2 } |
Public Types inherited from Marble::MarbleGraphicsItem | |
enum | CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache } |
Protected Member Functions | |
ScreenGraphicsItem (ScreenGraphicsItemPrivate *d_ptr) | |
virtual bool | eventFilter (QObject *, QEvent *) |
Protected Member Functions inherited from Marble::MarbleGraphicsItem | |
MarbleGraphicsItem (MarbleGraphicsItemPrivate *d_ptr) | |
virtual void | paint (QPainter *painter) |
void | update () |
Additional Inherited Members | |
Protected Attributes inherited from Marble::MarbleGraphicsItem | |
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
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.
Reimplemented from Marble::MarbleGraphicsItem.
Reimplemented in Marble::AbstractFloatItem, Marble::OverviewMap, Marble::ElevationProfileFloatItem, Marble::NavigationFloatItem, Marble::FileViewFloatItem, 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.