16#ifndef QGSCALLOUTPOSITION_H
17#define QGSCALLOUTPOSITION_H
72 QPointF
origin()
const {
return mOrigin; }
148 QPointF mDestination;
150 bool mOriginIsPinned =
false;
151 bool mDestinationIsPinned =
false;
QgsFeatureId featureId
ID of feature associated with this callout.
void setDestination(const QPointF &destination)
Sets the destination of the callout line, in map coordinates.
QString providerID
ID of the associated label provider.
QPointF origin() const
Returns the origin of the callout line, in map coordinates.
void setOrigin(const QPointF &origin)
Sets the origin of the callout line, in map coordinates.
QgsCalloutPosition()=default
QPointF destination() const
Returns the destination of the callout line, in map coordinates.
bool originIsPinned() const
Returns true if the origin of the callout has pinned (manually placed).
bool destinationIsPinned() const
Returns true if the destination of the callout has pinned (manually placed).
QgsCalloutPosition(QgsFeatureId id, const QString &layer, const QString &providerId=QString())
Constructor for QgsCalloutPosition.
QString layerID
ID of associated map layer.
void setDestinationIsPinned(bool pinned)
Sets whether the destination of the callout has pinned (manually placed).
void setOriginIsPinned(bool pinned)
Sets whether the origin of the callout has pinned (manually placed).
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features