#include <customgui_unitscale.h>
Unit scale data type (CUSTOMDATATYPE_UNITSCALE).
Example: Set the unit and scale of a document: 
 
if (uscale==nullptr)
  return;
 
 
GeData data;
 
  - Note
 - Has to be created with Alloc() and destroyed with Free(). 
 
 
◆ UnitScaleData()
◆ ~UnitScaleData()
◆ Alloc()
Allocates a unit scale data. Destroy the allocated unit scale data with Free(). 
- Returns
 - The allocated unit scale data, or nullptr if the allocation failed. 
 
 
 
◆ Free()
Destructs unit scale data allocated with Alloc(). 
- Parameters
 - 
  
    | [in,out] | data | The unit scale data to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards.  | 
  
   
 
 
◆ GetUnitScale()
Gets the values of the unit scale data. 
- Parameters
 - 
  
    | [out] | scale | Assigned the unit scale.  | 
    | [out] | unit | Assigned the unit.  | 
  
   
- Returns
 - true if unit scale data values were successfully retrieved, otherwise false. 
 
 
 
◆ SetUnitScale()
Sets the values for the unit scale data. 
- Parameters
 - 
  
    | [in] | scale | The unit scale.  | 
    | [in] | unit | The unit.  | 
  
   
- Returns
 - true if unit scale data values were successfully set, otherwise false. 
 
 
 
◆ operator==()
Equality operator. Checks if two unit scale data are equal. 
- Parameters
 - 
  
  
 
- Returns
 - true if the unit scale datas are equal, otherwise false. 
 
 
 
◆ operator!=()
Inequality operator. Checks if two unit scale data are different. 
- Parameters
 - 
  
  
 
- Returns
 - true if the unit scale datas are different, otherwise false.