marble
#include <LabelGraphicsItem.h>

Public Member Functions | |
| LabelGraphicsItem (MarbleGraphicsItem *parent=0) | |
| ~LabelGraphicsItem () | |
| void | clear () |
| QIcon | icon () const |
| QImage | image () const |
| QSizeF | minimumSize () const |
| void | setContentSize (const QSizeF &contentSize) |
| void | setIcon (const QIcon &icon, const QSize &size) |
| void | setImage (const QImage &image, const QSize &size=QSize()) |
| void | setMinimumSize (const QSizeF &size) |
| void | setText (const QString &text) |
| QString | text () const |
Public Member Functions inherited from Marble::FrameGraphicsItem | |
| FrameGraphicsItem (MarbleGraphicsItem *parent=0) | |
| virtual | ~FrameGraphicsItem () |
| QBrush | background () const |
| QBrush | borderBrush () const |
| Qt::PenStyle | borderStyle () const |
| qreal | borderWidth () const |
| QRectF | contentRect () const |
| QSizeF | contentSize () const |
| FrameType | frame () const |
| qreal | margin () const |
| qreal | marginBottom () const |
| qreal | marginLeft () const |
| qreal | marginRight () const |
| qreal | marginTop () const |
| qreal | padding () const |
| QRectF | paintedRect () const |
| void | setBackground (const QBrush &background) |
| void | setBorderBrush (const QBrush &brush) |
| void | setBorderStyle (Qt::PenStyle style) |
| void | setBorderWidth (qreal width) |
| void | setFrame (FrameType type) |
| void | setMargin (qreal margin) |
| void | setMarginBottom (qreal marginBottom) |
| void | setMarginLeft (qreal marginLeft) |
| void | setMarginRight (qreal marginRight) |
| void | setMarginTop (qreal marginTop) |
| void | setPadding (qreal width) |
Public Member Functions inherited from Marble::ScreenGraphicsItem | |
| 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) |
Public Member Functions inherited from Marble::MarbleGraphicsItem | |
| virtual | ~MarbleGraphicsItem () |
| CacheMode | cacheMode () const |
| bool | contains (const QPointF &point) const |
| void | hide () |
| AbstractMarbleGraphicsLayout * | layout () const |
| bool | paintEvent (QPainter *painter, const ViewportParams *viewport) |
| void | setCacheMode (CacheMode mode) |
| 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 | |
| void | paintContent (QPainter *painter) |
Protected Member Functions inherited from Marble::FrameGraphicsItem | |
| virtual QPainterPath | backgroundShape () const |
| virtual void | paint (QPainter *painter) |
| virtual void | paintBackground (QPainter *painter) |
Protected Member Functions inherited from Marble::ScreenGraphicsItem | |
| ScreenGraphicsItem (ScreenGraphicsItemPrivate *d_ptr) | |
| virtual bool | eventFilter (QObject *, QEvent *) |
Protected Member Functions inherited from Marble::MarbleGraphicsItem | |
| MarbleGraphicsItem (MarbleGraphicsItemPrivate *d_ptr) | |
| void | update () |
Additional Inherited Members | |
Public Types inherited from Marble::FrameGraphicsItem | |
| enum | FrameType { NoFrame, RectFrame, RoundedRectFrame, ShadowFrame } |
Public Types inherited from Marble::ScreenGraphicsItem | |
| enum | GraphicsItemFlag { ItemIsMovable = 0x1, ItemIsHideable = 0x2 } |
Public Types inherited from Marble::MarbleGraphicsItem | |
| enum | CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache } |
Protected Attributes inherited from Marble::MarbleGraphicsItem | |
| MarbleGraphicsItemPrivate *const | d |
Detailed Description
A label item provides an Item that displays text or images/pixmaps.
The text is displayed as plain text. The item also provides frames.
Definition at line 31 of file LabelGraphicsItem.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 55 of file LabelGraphicsItem.cpp.
| LabelGraphicsItem::~LabelGraphicsItem | ( | ) |
Definition at line 61 of file LabelGraphicsItem.cpp.
Member Function Documentation
| void LabelGraphicsItem::clear | ( | ) |
Definition at line 121 of file LabelGraphicsItem.cpp.
| QIcon LabelGraphicsItem::icon | ( | ) | const |
Definition at line 97 of file LabelGraphicsItem.cpp.
| QImage LabelGraphicsItem::image | ( | ) | const |
Definition at line 80 of file LabelGraphicsItem.cpp.
| QSizeF LabelGraphicsItem::minimumSize | ( | ) | const |
Definition at line 109 of file LabelGraphicsItem.cpp.
|
protectedvirtual |
Here the items paint their content.
Reimplemented from Marble::FrameGraphicsItem.
Definition at line 129 of file LabelGraphicsItem.cpp.
|
virtual |
Sets the size of the content of the item.
size is the size required for contents.
Reimplemented from Marble::FrameGraphicsItem.
Definition at line 34 of file LabelGraphicsItem.cpp.
| void LabelGraphicsItem::setIcon | ( | const QIcon & | icon, |
| const QSize & | size | ||
| ) |
Definition at line 102 of file LabelGraphicsItem.cpp.
| void LabelGraphicsItem::setImage | ( | const QImage & | image, |
| const QSize & | size = QSize() |
||
| ) |
Definition at line 85 of file LabelGraphicsItem.cpp.
| void LabelGraphicsItem::setMinimumSize | ( | const QSizeF & | size | ) |
Definition at line 114 of file LabelGraphicsItem.cpp.
| void LabelGraphicsItem::setText | ( | const QString & | text | ) |
Definition at line 71 of file LabelGraphicsItem.cpp.
| QString LabelGraphicsItem::text | ( | ) | const |
Definition at line 66 of file LabelGraphicsItem.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:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from