QGIS API Documentation 3.27.0-Master (75dc696944)
Static Public Member Functions | List of all members
QgsIconUtils Class Reference

Contains utility functions for working with icons. More...

#include <qgsiconutils.h>

Static Public Member Functions

static QIcon iconDefaultLayer ()
 Returns a default icon for layers, which aren't the standard raster/vector/... types. More...
 
static QIcon iconForLayer (const QgsMapLayer *layer)
 Returns the icon corresponding to a specified map layer. More...
 
static QIcon iconForLayerType (QgsMapLayerType type)
 Returns the default icon for the specified layer type. More...
 
static QIcon iconForWkbType (QgsWkbTypes::Type type)
 Returns the icon for a vector layer whose geometry type is provided. More...
 
static QIcon iconGeometryCollection ()
 Returns an icon representing geometry collections. More...
 
static QIcon iconLine ()
 Returns an icon representing line geometries. More...
 
static QIcon iconMesh ()
 Returns an icon representing mesh layers. More...
 
static QIcon iconPoint ()
 Returns an icon representing point geometries. More...
 
static QIcon iconPointCloud ()
 Returns an icon representing point cloud layers. More...
 
static QIcon iconPolygon ()
 Returns an icon representing polygon geometries. More...
 
static QIcon iconRaster ()
 Returns an icon representing raster layers. More...
 
static QIcon iconTable ()
 Returns an icon representing non-spatial layers (tables). More...
 
static QIcon iconVectorTile ()
 Returns an icon representing vector tile layers. More...
 

Detailed Description

Contains utility functions for working with icons.

Since
QGIS 3.20

Definition at line 33 of file qgsiconutils.h.

Member Function Documentation

◆ iconDefaultLayer()

QIcon QgsIconUtils::iconDefaultLayer ( )
static

Returns a default icon for layers, which aren't the standard raster/vector/... types.

Definition at line 89 of file qgsiconutils.cpp.

◆ iconForLayer()

QIcon QgsIconUtils::iconForLayer ( const QgsMapLayer layer)
static

Returns the icon corresponding to a specified map layer.

Definition at line 94 of file qgsiconutils.cpp.

◆ iconForLayerType()

QIcon QgsIconUtils::iconForLayerType ( QgsMapLayerType  type)
static

Returns the default icon for the specified layer type.

Since
QGIS 3.22

Definition at line 145 of file qgsiconutils.cpp.

◆ iconForWkbType()

QIcon QgsIconUtils::iconForWkbType ( QgsWkbTypes::Type  type)
static

Returns the icon for a vector layer whose geometry type is provided.

Definition at line 25 of file qgsiconutils.cpp.

◆ iconGeometryCollection()

QIcon QgsIconUtils::iconGeometryCollection ( )
static

Returns an icon representing geometry collections.

Since
QGIS 3.22

Definition at line 59 of file qgsiconutils.cpp.

◆ iconLine()

QIcon QgsIconUtils::iconLine ( )
static

Returns an icon representing line geometries.

Definition at line 49 of file qgsiconutils.cpp.

◆ iconMesh()

QIcon QgsIconUtils::iconMesh ( )
static

Returns an icon representing mesh layers.

Definition at line 74 of file qgsiconutils.cpp.

◆ iconPoint()

QIcon QgsIconUtils::iconPoint ( )
static

Returns an icon representing point geometries.

Definition at line 44 of file qgsiconutils.cpp.

◆ iconPointCloud()

QIcon QgsIconUtils::iconPointCloud ( )
static

Returns an icon representing point cloud layers.

Definition at line 84 of file qgsiconutils.cpp.

◆ iconPolygon()

QIcon QgsIconUtils::iconPolygon ( )
static

Returns an icon representing polygon geometries.

Definition at line 54 of file qgsiconutils.cpp.

◆ iconRaster()

QIcon QgsIconUtils::iconRaster ( )
static

Returns an icon representing raster layers.

Definition at line 69 of file qgsiconutils.cpp.

◆ iconTable()

QIcon QgsIconUtils::iconTable ( )
static

Returns an icon representing non-spatial layers (tables).

Definition at line 64 of file qgsiconutils.cpp.

◆ iconVectorTile()

QIcon QgsIconUtils::iconVectorTile ( )
static

Returns an icon representing vector tile layers.

Definition at line 79 of file qgsiconutils.cpp.


The documentation for this class was generated from the following files: