QGIS API Documentation  3.20.0-Odense (decaadbb31)
qgsiconutils.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsiconutils.h
3  -------------------
4  begin : May 2021
5  copyright : (C) 2021 Nyall Dawson
6  email : nyall dot dawson at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef QGSICONUTILS_H
18 #define QGSICONUTILS_H
19 
20 #include "qgis_sip.h"
21 #include "qgis_core.h"
22 #include "qgis.h"
23 #include "qgswkbtypes.h"
24 
25 class QgsMapLayer;
26 class QIcon;
27 
33 class CORE_EXPORT QgsIconUtils
34 {
35 
36  public:
37 
41  static QIcon iconForWkbType( QgsWkbTypes::Type type );
42 
46  static QIcon iconPoint();
47 
51  static QIcon iconLine();
52 
56  static QIcon iconPolygon();
57 
61  static QIcon iconTable();
62 
66  static QIcon iconRaster();
67 
71  static QIcon iconDefaultLayer();
72 
76  static QIcon iconMesh();
77 
81  static QIcon iconVectorTile();
82 
86  static QIcon iconPointCloud();
87 
91  static QIcon iconForLayer( const QgsMapLayer *layer );
92 
93 };
94 
95 #endif // QGSICONUTILS_H
96 
97 
Contains utility functions for working with icons.
Definition: qgsiconutils.h:34
Base class for all map layer types.
Definition: qgsmaplayer.h:70
Type
The WKB type describes the number of dimensions a geometry has.
Definition: qgswkbtypes.h:70