QgsUnitTypes::DistanceValue struct

A combination of distance value and unit.

Contents

Public variables

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

Variable documentation

QgsUnitTypes::DistanceUnit QgsUnitTypes::DistanceValue::unit

The value part of the distance.

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

double QgsUnitTypes::DistanceValue::value

The value part of the distance.

For 3.7 meters, this will be 3.7.