QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
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:
39 QgsRenderedAnnotationItemDetails( const QString &layerId, const QString &itemId );
40
41#ifdef SIP_RUN
42 // clang-format off
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// clang-format on
49#endif
50
54 QString itemId() const
55 {
56 return mItemId;
57 }
58
59 private:
60 QString mItemId;
61};
62
63#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.