#include <MRCMisc/exports.h>
#include <stddef.h>
Go to the source code of this file.
|
| enum | MR_NoUnit { MR_NoUnit__count = 0
} |
| |
| enum | MR_LengthUnit {
MR_LengthUnit_microns = 0
, MR_LengthUnit_millimeters = 1
, MR_LengthUnit_centimeters = 2
, MR_LengthUnit_meters = 3
,
MR_LengthUnit_inches = 4
, MR_LengthUnit_feet = 5
, MR_LengthUnit__count = 6
} |
| |
| enum | MR_AngleUnit { MR_AngleUnit_radians = 0
, MR_AngleUnit_degrees = 1
, MR_AngleUnit__count = 2
} |
| |
| enum | MR_PixelSizeUnit { MR_PixelSizeUnit_pixels = 0
, MR_PixelSizeUnit__count = 1
} |
| |
| enum | MR_RatioUnit { MR_RatioUnit_factor = 0
, MR_RatioUnit_percents = 1
, MR_RatioUnit__count = 2
} |
| |
| enum | MR_TimeUnit { MR_TimeUnit_seconds = 0
, MR_TimeUnit_milliseconds = 1
, MR_TimeUnit__count = 2
} |
| |
| enum | MR_MovementSpeedUnit {
MR_MovementSpeedUnit_micronsPerSecond = 0
, MR_MovementSpeedUnit_millimetersPerSecond = 1
, MR_MovementSpeedUnit_centimetersPerSecond = 2
, MR_MovementSpeedUnit_metersPerSecond = 3
,
MR_MovementSpeedUnit_inchesPerSecond = 4
, MR_MovementSpeedUnit_feetPerSecond = 5
, MR_MovementSpeedUnit__count = 6
} |
| |
| enum | MR_AreaUnit {
MR_AreaUnit_microns2 = 0
, MR_AreaUnit_millimeters2 = 1
, MR_AreaUnit_centimeters2 = 2
, MR_AreaUnit_meters2 = 3
,
MR_AreaUnit_inches2 = 4
, MR_AreaUnit_feet2 = 5
, MR_AreaUnit__count = 6
} |
| |
| enum | MR_VolumeUnit {
MR_VolumeUnit_microns3 = 0
, MR_VolumeUnit_millimeters3 = 1
, MR_VolumeUnit_centimeters3 = 2
, MR_VolumeUnit_meters3 = 3
,
MR_VolumeUnit_inches3 = 4
, MR_VolumeUnit_feet3 = 5
, MR_VolumeUnit__count = 6
} |
| |
| enum | MR_InvLengthUnit {
MR_InvLengthUnit_inv_microns = 0
, MR_InvLengthUnit_inv_millimeters = 1
, MR_InvLengthUnit_inv_centimeters = 2
, MR_InvLengthUnit_inv_meters = 3
,
MR_InvLengthUnit_inv_inches = 4
, MR_InvLengthUnit_inv_feet = 5
, MR_InvLengthUnit__count = 6
} |
| |
|
| MRC_API const float * | MR_UnitInfo_Get_conversionFactor (const MR_UnitInfo *_this) |
| |
| MRC_API void | MR_UnitInfo_Set_conversionFactor (MR_UnitInfo *_this, float value) |
| |
| MRC_API float * | MR_UnitInfo_GetMutable_conversionFactor (MR_UnitInfo *_this) |
| |
| MRC_API const MR_std_string_view * | MR_UnitInfo_Get_prettyName (const MR_UnitInfo *_this) |
| |
| MRC_API void | MR_UnitInfo_Set_prettyName (MR_UnitInfo *_this, const char *value, const char *value_end) |
| |
| MRC_API MR_std_string_view * | MR_UnitInfo_GetMutable_prettyName (MR_UnitInfo *_this) |
| |
| MRC_API const MR_std_string_view * | MR_UnitInfo_Get_unitSuffix (const MR_UnitInfo *_this) |
| |
| MRC_API void | MR_UnitInfo_Set_unitSuffix (MR_UnitInfo *_this, const char *value, const char *value_end) |
| |
| MRC_API MR_std_string_view * | MR_UnitInfo_GetMutable_unitSuffix (MR_UnitInfo *_this) |
| |
| MRC_API MR_UnitInfo * | MR_UnitInfo_DefaultConstruct (void) |
| |
| MRC_API MR_UnitInfo * | MR_UnitInfo_DefaultConstructArray (size_t num_elems) |
| |
| MRC_API MR_UnitInfo * | MR_UnitInfo_ConstructFrom (float conversionFactor, const char *prettyName, const char *prettyName_end, const char *unitSuffix, const char *unitSuffix_end) |
| |
| MRC_API const MR_UnitInfo * | MR_UnitInfo_OffsetPtr (const MR_UnitInfo *ptr, ptrdiff_t i) |
| |
| MRC_API MR_UnitInfo * | MR_UnitInfo_OffsetMutablePtr (MR_UnitInfo *ptr, ptrdiff_t i) |
| |
| MRC_API MR_UnitInfo * | MR_UnitInfo_ConstructFromAnother (const MR_UnitInfo *_other) |
| |
| MRC_API void | MR_UnitInfo_Destroy (const MR_UnitInfo *_this) |
| | Destroys a heap-allocated instance of MR_UnitInfo. Does nothing if the pointer is null.
|
| |
| MRC_API void | MR_UnitInfo_DestroyArray (const MR_UnitInfo *_this) |
| | Destroys a heap-allocated array of MR_UnitInfo. Does nothing if the pointer is null.
|
| |
| MRC_API MR_UnitInfo * | MR_UnitInfo_AssignFromAnother (MR_UnitInfo *_this, const MR_UnitInfo *_other) |
| |
◆ MR_AngleUnit
◆ MR_AreaUnit
◆ MR_InvLengthUnit
◆ MR_LengthUnit
◆ MR_MovementSpeedUnit
◆ MR_NoUnit
◆ MR_PixelSizeUnit
◆ MR_RatioUnit
◆ MR_std_string_view
◆ MR_TimeUnit
◆ MR_UnitInfo
Generated from class MR::UnitInfo. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
◆ MR_VolumeUnit
◆ MR_AngleUnit
| Enumerator |
|---|
| MR_AngleUnit_radians | |
| MR_AngleUnit_degrees | |
| MR_AngleUnit__count | |
◆ MR_AreaUnit
| Enumerator |
|---|
| MR_AreaUnit_microns2 | |
| MR_AreaUnit_millimeters2 | |
| MR_AreaUnit_centimeters2 | |
| MR_AreaUnit_meters2 | |
| MR_AreaUnit_inches2 | |
| MR_AreaUnit_feet2 | |
| MR_AreaUnit__count | |
◆ MR_InvLengthUnit
| Enumerator |
|---|
| MR_InvLengthUnit_inv_microns | |
| MR_InvLengthUnit_inv_millimeters | |
| MR_InvLengthUnit_inv_centimeters | |
| MR_InvLengthUnit_inv_meters | |
| MR_InvLengthUnit_inv_inches | |
| MR_InvLengthUnit_inv_feet | |
| MR_InvLengthUnit__count | |
◆ MR_LengthUnit
| Enumerator |
|---|
| MR_LengthUnit_microns | |
| MR_LengthUnit_millimeters | |
| MR_LengthUnit_centimeters | |
| MR_LengthUnit_meters | |
| MR_LengthUnit_inches | |
| MR_LengthUnit_feet | |
| MR_LengthUnit__count | |
◆ MR_MovementSpeedUnit
| Enumerator |
|---|
| MR_MovementSpeedUnit_micronsPerSecond | |
| MR_MovementSpeedUnit_millimetersPerSecond | |
| MR_MovementSpeedUnit_centimetersPerSecond | |
| MR_MovementSpeedUnit_metersPerSecond | |
| MR_MovementSpeedUnit_inchesPerSecond | |
| MR_MovementSpeedUnit_feetPerSecond | |
| MR_MovementSpeedUnit__count | |
◆ MR_NoUnit
| Enumerator |
|---|
| MR_NoUnit__count | |
◆ MR_PixelSizeUnit
| Enumerator |
|---|
| MR_PixelSizeUnit_pixels | |
| MR_PixelSizeUnit__count | |
◆ MR_RatioUnit
| Enumerator |
|---|
| MR_RatioUnit_factor | |
| MR_RatioUnit_percents | |
| MR_RatioUnit__count | |
◆ MR_TimeUnit
| Enumerator |
|---|
| MR_TimeUnit_seconds | |
| MR_TimeUnit_milliseconds | |
| MR_TimeUnit__count | |
◆ MR_VolumeUnit
| Enumerator |
|---|
| MR_VolumeUnit_microns3 | |
| MR_VolumeUnit_millimeters3 | |
| MR_VolumeUnit_centimeters3 | |
| MR_VolumeUnit_meters3 | |
| MR_VolumeUnit_inches3 | |
| MR_VolumeUnit_feet3 | |
| MR_VolumeUnit__count | |
◆ MR_UnitInfo_AssignFromAnother()
Generated from method MR::UnitInfo::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.
◆ MR_UnitInfo_ConstructFrom()
| MRC_API MR_UnitInfo * MR_UnitInfo_ConstructFrom |
( |
float | conversionFactor, |
|
|
const char * | prettyName, |
|
|
const char * | prettyName_end, |
|
|
const char * | unitSuffix, |
|
|
const char * | unitSuffix_end ) |
Constructs MR::UnitInfo elementwise. Parameter prettyName can not be null. If prettyName_end is null, then prettyName is assumed to be null-terminated. The reference to the parameter prettyName might be preserved in the constructed object. Parameter unitSuffix can not be null. If unitSuffix_end is null, then unitSuffix is assumed to be null-terminated. The reference to the parameter unitSuffix might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_UnitInfo_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.
◆ MR_UnitInfo_ConstructFromAnother()
Generated from constructor MR::UnitInfo::UnitInfo. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_UnitInfo_Destroy() to free it when you're done using it.
◆ MR_UnitInfo_DefaultConstruct()
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_UnitInfo_Destroy() to free it when you're done using it.
◆ MR_UnitInfo_DefaultConstructArray()
◆ MR_UnitInfo_Destroy()
Destroys a heap-allocated instance of MR_UnitInfo. Does nothing if the pointer is null.
◆ MR_UnitInfo_DestroyArray()
Destroys a heap-allocated array of MR_UnitInfo. Does nothing if the pointer is null.
◆ MR_UnitInfo_Get_conversionFactor()
Returns a pointer to a member variable of class MR::UnitInfo named conversionFactor. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
◆ MR_UnitInfo_Get_prettyName()
Returns a pointer to a member variable of class MR::UnitInfo named prettyName. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
◆ MR_UnitInfo_Get_unitSuffix()
Returns a pointer to a member variable of class MR::UnitInfo named unitSuffix. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
◆ MR_UnitInfo_GetMutable_conversionFactor()
Returns a mutable pointer to a member variable of class MR::UnitInfo named conversionFactor. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
◆ MR_UnitInfo_GetMutable_prettyName()
Returns a mutable pointer to a member variable of class MR::UnitInfo named prettyName. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
◆ MR_UnitInfo_GetMutable_unitSuffix()
Returns a mutable pointer to a member variable of class MR::UnitInfo named unitSuffix. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
◆ MR_UnitInfo_OffsetMutablePtr()
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
◆ MR_UnitInfo_OffsetPtr()
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
◆ MR_UnitInfo_Set_conversionFactor()
Modifies a member variable of class MR::UnitInfo named conversionFactor. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in conversionFactor.
◆ MR_UnitInfo_Set_prettyName()
| MRC_API void MR_UnitInfo_Set_prettyName |
( |
MR_UnitInfo * | _this, |
|
|
const char * | value, |
|
|
const char * | value_end ) |
Modifies a member variable of class MR::UnitInfo named prettyName. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated. The reference to the parameter value might be preserved in this object in element prettyName. When this function is called, this object will drop object references it had previously in prettyName.
◆ MR_UnitInfo_Set_unitSuffix()
| MRC_API void MR_UnitInfo_Set_unitSuffix |
( |
MR_UnitInfo * | _this, |
|
|
const char * | value, |
|
|
const char * | value_end ) |
Modifies a member variable of class MR::UnitInfo named unitSuffix. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated. The reference to the parameter value might be preserved in this object in element unitSuffix. When this function is called, this object will drop object references it had previously in unitSuffix.