QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
Public Attributes | List of all members
QgsUnitTypes::DistanceValue Struct Reference

A combination of distance value and unit. More...

#include <qgsunittypes.h>

Public Attributes

QgsUnitTypes::DistanceUnit unit
 The value part of the distance. More...
 
double value
 The value part of the distance. More...
 

Detailed Description

A combination of distance value and unit.

Since
QGIS 3.0

Definition at line 184 of file qgsunittypes.h.

Member Data Documentation

◆ unit

QgsUnitTypes::DistanceUnit QgsUnitTypes::DistanceValue::unit

The value part of the distance.

For 3.7 meters, this will be QgsUnitTypes::DistanceMeters.

Definition at line 195 of file qgsunittypes.h.

◆ value

double QgsUnitTypes::DistanceValue::value

The value part of the distance.

For 3.7 meters, this will be 3.7.

Definition at line 190 of file qgsunittypes.h.


The documentation for this struct was generated from the following file: