QGIS API Documentation 3.99.0-Master (d270888f95f)
Loading...
Searching...
No Matches
qgsrenderedannotationitemdetails.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrenderedannotationitemdetails.h
3 ----------------
4 copyright : (C) 2021 by Nyall Dawson
5 email : nyall dot dawson at gmail dot com
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef QGSRENDEREDANNOTATIONITEMDETAILS_H
18#define QGSRENDEREDANNOTATIONITEMDETAILS_H
19
20#include "qgis_core.h"
21#include "qgis_sip.h"
23
24#include <QString>
25
26using namespace Qt::StringLiterals;
27
34{
35 public:
36
40 QgsRenderedAnnotationItemDetails( const QString &layerId, const QString &itemId );
41
42#ifdef SIP_RUN
43 SIP_PYOBJECT __repr__();
44 % MethodCode
45 QString str = u"<QgsRenderedAnnotationItemDetails: %1 - %2>"_s.arg( sipCpp->layerId(), sipCpp->itemId() );
46 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
47 % End
48#endif
49
53 QString itemId() const { return mItemId; }
54
55 private:
56
57 QString mItemId;
58
59};
60
61#endif // QGSRENDEREDANNOTATIONITEMDETAILS_H
QgsRenderedAnnotationItemDetails(const QString &layerId, const QString &itemId)
Constructor for QgsRenderedAnnotationItemDetails.
QString itemId() const
Returns the item ID of the associated annotation item.
QgsRenderedItemDetails(const QString &layerId)
Constructor for QgsRenderedItemDetails.
QString layerId() const
Returns the layer ID of the associated map layer.