marble
#include <FrameGraphicsItem.h>
Public Types | |
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 Member Functions | |
virtual QPainterPath | backgroundShape () const |
virtual void | paint (QPainter *painter) |
virtual void | paintBackground (QPainter *painter) |
virtual void | paintContent (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 | |
Protected Attributes inherited from Marble::MarbleGraphicsItem | |
MarbleGraphicsItemPrivate *const | d |
Detailed Description
Definition at line 25 of file FrameGraphicsItem.h.
Member Enumeration Documentation
Enumerator | |
---|---|
NoFrame | |
RectFrame | |
RoundedRectFrame | |
ShadowFrame |
Definition at line 28 of file FrameGraphicsItem.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 27 of file FrameGraphicsItem.cpp.
|
virtual |
Definition at line 33 of file FrameGraphicsItem.cpp.
Member Function Documentation
QBrush FrameGraphicsItem::background | ( | ) | const |
Returns the background brush of the item.
Definition at line 156 of file FrameGraphicsItem.cpp.
|
protectedvirtual |
Returns the shape of the background.
Reimplemented in Marble::FITemplateFloatItem, Marble::CompassFloatItem, Marble::ProgressFloatItem, and Marble::FileViewFloatItem.
Definition at line 206 of file FrameGraphicsItem.cpp.
QBrush FrameGraphicsItem::borderBrush | ( | ) | const |
Returns the brush of the border.
Definition at line 134 of file FrameGraphicsItem.cpp.
Qt::PenStyle FrameGraphicsItem::borderStyle | ( | ) | const |
Returns the style of the border.
Definition at line 145 of file FrameGraphicsItem.cpp.
qreal FrameGraphicsItem::borderWidth | ( | ) | const |
Returns the border width of the item.
Definition at line 109 of file FrameGraphicsItem.cpp.
|
virtual |
Returns the rect of the content in item coordinates.
Reimplemented from Marble::MarbleGraphicsItem.
Definition at line 167 of file FrameGraphicsItem.cpp.
|
virtual |
Returns the size of the content of the MarbleGraphicsItem.
This is identical to size() for default MarbleGraphicsItems.
Reimplemented from Marble::MarbleGraphicsItem.
Definition at line 180 of file FrameGraphicsItem.cpp.
FrameGraphicsItem::FrameType FrameGraphicsItem::frame | ( | ) | const |
Returns the type of the frame.
Definition at line 38 of file FrameGraphicsItem.cpp.
qreal FrameGraphicsItem::margin | ( | ) | const |
Returns the margin of the item.
This is used for all margins with the value 0.0. The padding is the space outside the painted space.
Definition at line 49 of file FrameGraphicsItem.cpp.
qreal FrameGraphicsItem::marginBottom | ( | ) | const |
Returns the bottom margin of the item.
Definition at line 73 of file FrameGraphicsItem.cpp.
qreal FrameGraphicsItem::marginLeft | ( | ) | const |
Returns the left margin of the item.
Definition at line 85 of file FrameGraphicsItem.cpp.
qreal FrameGraphicsItem::marginRight | ( | ) | const |
Returns the right margin of the item.
Definition at line 97 of file FrameGraphicsItem.cpp.
qreal FrameGraphicsItem::marginTop | ( | ) | const |
Returns the top margin of the item.
Definition at line 61 of file FrameGraphicsItem.cpp.
qreal FrameGraphicsItem::padding | ( | ) | const |
Returns the padding of the item.
The padding is the empty space inside the border.
Definition at line 121 of file FrameGraphicsItem.cpp.
|
protectedvirtual |
This function won't be reimplemented in most cases.
Reimplemented from Marble::MarbleGraphicsItem.
Definition at line 231 of file FrameGraphicsItem.cpp.
|
protectedvirtual |
Paints the background.
This function won't be reimplemented in most cases.
Definition at line 221 of file FrameGraphicsItem.cpp.
|
protectedvirtual |
Here the items paint their content.
Reimplemented in Marble::ElevationProfileFloatItem, Marble::NavigationFloatItem, Marble::OverviewMap, Marble::CompassFloatItem, Marble::MapScaleFloatItem, Marble::ProgressFloatItem, and Marble::LabelGraphicsItem.
Definition at line 254 of file FrameGraphicsItem.cpp.
QRectF FrameGraphicsItem::paintedRect | ( | ) | const |
Definition at line 185 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setBackground | ( | const QBrush & | background | ) |
Changes the background brush of the item.
Definition at line 161 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setBorderBrush | ( | const QBrush & | brush | ) |
Change the brush of the border.
Definition at line 139 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setBorderStyle | ( | Qt::PenStyle | style | ) |
Change the style of the border.
Definition at line 150 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setBorderWidth | ( | qreal | width | ) |
Set the border width of the item.
Definition at line 114 of file FrameGraphicsItem.cpp.
|
virtual |
Sets the size of the content of the item.
size
is the size required for contents.
Reimplemented from Marble::MarbleGraphicsItem.
Reimplemented in Marble::LabelGraphicsItem.
Definition at line 200 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setFrame | ( | FrameType | type | ) |
Sets the type of the Frame.
Standard is NoFrame.
Definition at line 43 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setMargin | ( | qreal | margin | ) |
Sets the margin of the item.
This is used for all margins with the value 0.0.
Definition at line 54 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setMarginBottom | ( | qreal | marginBottom | ) |
Set the bottom margin of the item.
Definition at line 78 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setMarginLeft | ( | qreal | marginLeft | ) |
Set the left margin of the item.
Definition at line 90 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setMarginRight | ( | qreal | marginRight | ) |
Set the right margin of the item.
Definition at line 102 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setMarginTop | ( | qreal | marginTop | ) |
Set the top margin of the item.
Definition at line 66 of file FrameGraphicsItem.cpp.
void FrameGraphicsItem::setPadding | ( | qreal | width | ) |
Set the padding of the item.
Definition at line 126 of file FrameGraphicsItem.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:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.