QGIS API Documentation  3.21.0-Master (5b68dc587e)
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 
63  static QIcon iconGeometryCollection();
64 
68  static QIcon iconTable();
69 
73  static QIcon iconRaster();
74 
78  static QIcon iconDefaultLayer();
79 
83  static QIcon iconMesh();
84 
88  static QIcon iconVectorTile();
89 
93  static QIcon iconPointCloud();
94 
98  static QIcon iconForLayer( const QgsMapLayer *layer );
99 
105  static QIcon iconForLayerType( QgsMapLayerType type );
106 
107 };
108 
109 #endif // QGSICONUTILS_H
110 
111 
Contains utility functions for working with icons.
Definition: qgsiconutils.h:34
Base class for all map layer types.
Definition: qgsmaplayer.h:73
Type
The WKB type describes the number of dimensions a geometry has.
Definition: qgswkbtypes.h:70
QgsMapLayerType
Types of layers that can be added to a map.
Definition: qgis.h:47