QGIS API Documentation
4.3.0-Master (9dce731a7a1)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
annotations
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
"
22
#include "
qgsrendereditemdetails.h
"
23
24
#include <QString>
25
26
using namespace
Qt::StringLiterals;
27
33
class
CORE_EXPORT
QgsRenderedAnnotationItemDetails
:
public
QgsRenderedItemDetails
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::QgsRenderedAnnotationItemDetails
QgsRenderedAnnotationItemDetails(const QString &layerId, const QString &itemId)
Constructor for QgsRenderedAnnotationItemDetails.
Definition
qgsrenderedannotationitemdetails.cpp:19
QgsRenderedAnnotationItemDetails::itemId
QString itemId() const
Returns the item ID of the associated annotation item.
Definition
qgsrenderedannotationitemdetails.h:54
QgsRenderedItemDetails::QgsRenderedItemDetails
QgsRenderedItemDetails(const QString &layerId)
Constructor for QgsRenderedItemDetails.
Definition
qgsrendereditemdetails.cpp:19
QgsRenderedItemDetails::layerId
QString layerId() const
Returns the layer ID of the associated map layer.
Definition
qgsrendereditemdetails.h:60
qgis_sip.h
qgsrendereditemdetails.h
Generated on
for QGIS API Documentation by
1.17.0