AbstractFloatItem Class Reference
from PyKDE4.marble import *
Inherits: Marble.RenderPlugin → QObject
Namespace: Marble
Detailed Description
The abstract class that creates an "empty" float item.
Methods |
| | __init__ (self, QPointF point=QPointF(10.0,10.0), QSizeF size=QSizeF(150.0,50.0)) |
| | __init__ (self, Marble.AbstractFloatItem a0) |
| QBrush | background (self) |
| QPainterPath | backgroundShape (self) |
| float | border (self) |
| QBrush | borderBrush (self) |
| Qt.PenStyle | borderStyle (self) |
| QRectF | contentRect (self) |
| bool | eventFilter (self, QObject a0, QEvent a1) |
| QFont | font (self) |
| float | margin (self) |
| float | marginBottom (self) |
| float | marginLeft (self) |
| float | marginRight (self) |
| float | marginTop (self) |
| bool | needsUpdate (self, Marble.ViewportParams viewport) |
| float | padding (self) |
| QPen | pen (self) |
| bool | pixmapCacheEnabled (self) |
| QPointF | position (self) |
| bool | positionLocked (self) |
| QPointF | positivePosition (self, QRectF viewPort) |
| bool | render (self, Marble.GeoPainter painter, Marble.ViewportParams viewport, QString pos="FLOAT_ITEM", GeoSceneLayer layer=0) |
| | renderBackground (self, QPainter a0) |
| bool | renderFloatItem (self, Marble.GeoPainter painter, Marble.ViewportParams viewport, GeoSceneLayer layer=0) |
| bool | renderOnMap (self, Marble.GeoPainter painter, Marble.ViewportParams viewport, QString renderPos, GeoSceneLayer layer=0) |
| QString | renderPolicy (self) |
| QStringList | renderPosition (self) |
| QRectF | renderedRect (self) |
| | setBackground (self, QBrush background) |
| | setBorder (self, float width) |
| | setBorderBrush (self, QBrush brush) |
| | setBorderStyle (self, Qt.PenStyle a0) |
| | setFont (self, QFont font) |
| | setMargin (self, float margin) |
| | setMarginBottom (self, float marginBottom) |
| | setMarginLeft (self, float marginLeft) |
| | setMarginRight (self, float marginRight) |
| | setMarginTop (self, float marginTop) |
| | setPadding (self, float width) |
| | setPen (self, QPen pen) |
| | setPixmapCacheEnabled (self, bool enabled) |
| | setPosition (self, QPointF position) |
| | setPositionLocked (self, bool enabled) |
| | setSize (self, QSizeF size) |
| QSizeF | size (self) |
Method Documentation
| __init__ |
( |
self, |
|
|
|
QPointF |
point=QPointF(10.0,10.0), |
|
|
QSizeF |
size=QSizeF(150.0,50.0) |
|
) |
|
|
|
| float marginBottom |
( |
|
self ) |
|
| float marginLeft |
( |
|
self ) |
|
| float marginRight |
( |
|
self ) |
|
| bool pixmapCacheEnabled |
( |
|
self ) |
|
Return the position of the float item
Positive x-coordinates are counted left-aligned from the left map border.
Negative x-coordinates are counted right-aligned from the right map border.
Positive y-coordinates are counted top-aligned from the top map border.
Negative y-coordinates are counted right-aligned from the bottom map border.
| bool positionLocked |
( |
|
self ) |
|
Return the positive position of the float item
All coordinates are counted positive and depend on the current viewport.
Positive x-coordinates are counted left-aligned from the left map border.
Positive y-coordinates are counted top-aligned from the top map border.
| setBackground |
( |
self, |
|
|
|
QBrush |
background |
|
) |
|
|
|
| setBorder |
( |
self, |
|
|
|
float |
width |
|
) |
|
|
|
| setBorderBrush |
( |
self, |
|
|
|
QBrush |
brush |
|
) |
|
|
|
| setFont |
( |
self, |
|
|
|
QFont |
font |
|
) |
|
|
|
| setMargin |
( |
self, |
|
|
|
float |
margin |
|
) |
|
|
|
| setMarginBottom |
( |
self, |
|
|
|
float |
marginBottom |
|
) |
|
|
|
| setMarginLeft |
( |
self, |
|
|
|
float |
marginLeft |
|
) |
|
|
|
| setMarginRight |
( |
self, |
|
|
|
float |
marginRight |
|
) |
|
|
|
| setMarginTop |
( |
self, |
|
|
|
float |
marginTop |
|
) |
|
|
|
| setPadding |
( |
self, |
|
|
|
float |
width |
|
) |
|
|
|
| setPen |
( |
self, |
|
|
|
QPen |
pen |
|
) |
|
|
|
| setPixmapCacheEnabled |
( |
self, |
|
|
|
bool |
enabled |
|
) |
|
|
|
| setPosition |
( |
self, |
|
|
|
QPointF |
position |
|
) |
|
|
|
Set the position of the float item
- Parameters:
-
Positive x-coordinates are counted left-aligned from the left map border.
Negative x-coordinates are counted right-aligned from the right map border.
Positive y-coordinates are counted top-aligned from the top map border.
Negative y-coordinates are counted right-aligned from the bottom map border.
| setPositionLocked |
( |
self, |
|
|
|
bool |
enabled |
|
) |
|
|
|