![]() |
GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
A unit of measurement. More...
#include <MeasurementUnit.h>
Public Member Functions | |
| MeasurementUnit (const std::vector< gd::MeasurementUnitElement > &elements_, gd::String name_, gd::String label_, gd::String elementsWithWords_, gd::String description_="") | |
| MeasurementUnit (gd::String name_, gd::String label_, gd::String elementsWithWords_, gd::String description_="") | |
| const gd::String & | GetName () const |
| Return the unit name. | |
| const gd::String & | GetLabel () const |
| Return the unit label. | |
| const gd::String & | GetDescription () const |
| Return the unit description. | |
| const gd::String & | GetElementsWithWords () const |
| Return the unit description. | |
| const std::vector< gd::MeasurementUnitElement > & | GetElements () const |
| Return the unit elements. | |
| std::size_t | GetElementsCount () const |
| int | GetElementPower (std::size_t elementIndex) const |
| const gd::MeasurementBaseUnit & | GetElementBaseUnit (std::size_t elementIndex) const |
| bool | IsUndefined () const |
Static Public Member Functions | |
| static void | ApplyTranslation () |
| static const gd::MeasurementUnit & | GetUndefined () |
| static const gd::MeasurementUnit & | GetDimensionless () |
| static const gd::MeasurementUnit & | GetDegreeAngle () |
| static const gd::MeasurementUnit & | GetSecond () |
| static const gd::MeasurementUnit & | GetPixel () |
| static const gd::MeasurementUnit & | GetPixelSpeed () |
| static const gd::MeasurementUnit & | GetPixelAcceleration () |
| static const gd::MeasurementUnit & | GetAngularSpeed () |
| static const gd::MeasurementUnit & | GetNewton () |
| static const std::vector< const gd::MeasurementUnit * > & | GetDefaultMeasurementUnits () |
| static std::size_t | GetDefaultMeasurementUnitsCount () |
| static const gd::MeasurementUnit & | GetDefaultMeasurementUnitAtIndex (std::size_t index) |
| static bool | HasDefaultMeasurementUnitNamed (const gd::String &name) |
| static const gd::MeasurementUnit & | GetDefaultMeasurementUnitByName (const gd::String &name) |
A unit of measurement.