#include <customgui_unitscale.h>
Unit scale custom data type ( CUSTOMDATATYPE_UNITSCALE ) for UnitScaleCustomGui .
私有成员函数 |
|
UnitScaleData () | |
~UnitScaleData () |
Alloc/Free |
|
static UnitScaleData * | Alloc () |
static void | Free ( UnitScaleData *&data) |
Unit/Scale |
|
Bool | SetUnitScale ( Float scale, DOCUMENT_UNIT unit) |
Bool | GetUnitScale ( Float &scale, DOCUMENT_UNIT &unit) const |
运算符 |
|
Bool | operator== (const UnitScaleData &b) const |
Bool | operator!= (const UnitScaleData &b) const |
|
|
|
static |
Allocates a unit scale data. Destroy the allocated unit scale data with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs unit scale data allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
[in,out] | data | The unit scale data to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
Bool SetUnitScale | ( | Float | scale , |
DOCUMENT_UNIT | unit | ||
) |
Sets the values for the unit scale data.
[in] | scale | The unit scale. |
[in] | unit | The unit. |
Bool GetUnitScale | ( | Float & | scale , |
DOCUMENT_UNIT & | unit | ||
) | const |
Gets the values of the unit scale data.
[out] | scale | Assigned the unit scale. |
[out] | unit | Assigned the unit. |
Bool operator== | ( | const UnitScaleData & | b | ) | const |
Equality operator. Checks if the unit scale data are equal.
[in] | b | A unit scale data. |
Bool operator!= | ( | const UnitScaleData & | b | ) | const |
Inequality operator. Checks if the unit scale data are different.
[in] | b | A unit scale data. |