QGIS API Documentation 3.38.0-Grenoble (exported)
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
30{
31 public:
32
36 QgsRenderedAnnotationItemDetails( const QString &layerId, const QString &itemId );
37
38#ifdef SIP_RUN
39 SIP_PYOBJECT __repr__();
40 % MethodCode
41 QString str = QStringLiteral( "<QgsRenderedAnnotationItemDetails: %1 - %2>" ).arg( sipCpp->layerId(), sipCpp->itemId() );
42 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
43 % End
44#endif
45
49 QString itemId() const { return mItemId; }
50
51 private:
52
53 QString mItemId;
54
55};
56
57#endif // QGSRENDEREDANNOTATIONITEMDETAILS_H
Contains information about a rendered annotation item.
QString itemId() const
Returns the item ID of the associated annotation item.
Base class for detailed information about a rendered item.
#define str(x)
Definition qgis.cpp:38