6#ifndef MARBLE_MARBLEGRAPHICSITEM_H
7#define MARBLE_MARBLEGRAPHICSITEM_H
9#include "marble_export.h"
23class AbstractMarbleGraphicsLayout;
26class MarbleGraphicsItemPrivate;
28class MARBLE_EXPORT MarbleGraphicsItem
37 virtual ~MarbleGraphicsItem();
43 bool paintEvent(
QPainter *painter,
const ViewportParams *viewport);
48 bool contains(
const QPointF &point)
const;
53 AbstractMarbleGraphicsLayout *layout()
const;
59 void setLayout(AbstractMarbleGraphicsLayout *layout);
64 CacheMode cacheMode()
const;
69 void setCacheMode(CacheMode mode);
79 void setVisible(
bool visible);
99 void setSize(
const QSizeF &size);
105 virtual QSizeF contentSize()
const;
110 virtual void setContentSize(
const QSizeF &size);
115 virtual QRectF contentRect()
const;
120 explicit MarbleGraphicsItem(MarbleGraphicsItemPrivate *dd);
126 virtual void paint(
QPainter *painter);
137 MarbleGraphicsItemPrivate *
const d_ptr;
140 Q_DISABLE_COPY(MarbleGraphicsItem)
141 Q_DECLARE_PRIVATE(MarbleGraphicsItem)
Q_INVOKABLE void setProjection(uint proj)
void update(Part *part, const QByteArray &data, qint64 dataSize)
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 Mon Nov 4 2024 16:37:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.