KDE 4.2 PyKDE API Reference for Marble

- KDE's Python API

# MarbleAbstractFloatItem Class Reference

`from PyKDE4.marble import *`

Inherits: Marble.MarbleRenderPlugin → 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.MarbleAbstractFloatItem 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)
| ) |  |  |

__init__ | ( | self, |
|  | Marble.MarbleAbstractFloatItem | 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 ) |