kig
unit.h
Go to the documentation of this file.
64 static double convert( double value, Unit::MetricalUnit from, Unit::MetricalUnit to, int dpi = 1 );
void setUnit(Unit::MetricalUnit unit)
Set the unit of the current object to unit, but it doesn't convert the value to the new unit...
Definition: unit.cc:47
void convertTo(Unit::MetricalUnit unit)
Set the unit of the current object to unit and convert the value to the new unit using convert()...
Definition: unit.cc:52
Definition: unit.h:36
static double convert(double value, Unit::MetricalUnit from, Unit::MetricalUnit to, int dpi=1)
The most useful method of this class: convert the specified value from the unit from to the unit to...
Definition: unit.cc:86
static int precision(Unit::MetricalUnit unit)
How many decimals the unit have.
Definition: unit.cc:139
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.