6#ifndef MARBLE_FRAMEGRAPHICSITEM_H
7#define MARBLE_FRAMEGRAPHICSITEM_H
10#include "ScreenGraphicsItem.h"
11#include "marble_export.h"
21class FrameGraphicsItemPrivate;
23class MARBLE_EXPORT FrameGraphicsItem :
public ScreenGraphicsItem
33 explicit FrameGraphicsItem(MarbleGraphicsItem *parent =
nullptr);
35 ~FrameGraphicsItem()
override;
45 void setFrame(FrameType type);
56 void setMargin(qreal margin);
61 qreal marginTop()
const;
66 void setMarginTop(qreal marginTop);
71 qreal marginBottom()
const;
76 void setMarginBottom(qreal marginBottom);
81 qreal marginLeft()
const;
86 void setMarginLeft(qreal marginLeft);
91 qreal marginRight()
const;
96 void setMarginRight(qreal marginRight);
101 qreal borderWidth()
const;
106 void setBorderWidth(qreal width);
112 qreal padding()
const;
117 void setPadding(qreal width);
122 QBrush borderBrush()
const;
127 void setBorderBrush(
const QBrush &brush);
142 QBrush background()
const;
147 void setBackground(
const QBrush &background);
149 QRectF paintedRect()
const;
151 QRectF contentRect()
const override;
152 QSizeF contentSize()
const override;
158 void setContentSize(
const QSizeF &size)
override;
169 void paint(
QPainter *painter)
override;
174 virtual void paintContent(
QPainter *painter);
179 virtual void paintBackground(
QPainter *painter);
181 explicit FrameGraphicsItem(FrameGraphicsItemPrivate *dd);
184 Q_DISABLE_COPY(FrameGraphicsItem)
185 Q_DECLARE_PRIVATE(FrameGraphicsItem)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.