Blender V4.3
bUnitDef Struct Reference

Public Attributes

const char * name
 
const char * name_plural
 
const char * name_short
 
const char * name_alt
 
const char * name_display
 
const char * identifier
 
double scalar
 
double bias
 
int flag
 

Detailed Description

Definition at line 88 of file unit.cc.

Member Data Documentation

◆ bias

double bUnitDef::bias

Needed for converting temperatures.

Definition at line 107 of file unit.cc.

◆ flag

int bUnitDef::flag

Definition at line 108 of file unit.cc.

Referenced by BKE_unit_is_suppressed().

◆ identifier

const char* bUnitDef::identifier

When nullptr, a transformed version of the name will be taken in some cases.

Definition at line 103 of file unit.cc.

◆ name

const char* bUnitDef::name

Definition at line 89 of file unit.cc.

Referenced by BKE_unit_name_get(), is_valid_unit_collection(), and unit_best_fit().

◆ name_alt

const char* bUnitDef::name_alt

Keyboard-friendly ASCII-only version of name_short, can be nullptr. If name_short has non-ASCII chars, name_alt should be present.

Definition at line 98 of file unit.cc.

◆ name_display

const char* bUnitDef::name_display

Can be nullptr.

Definition at line 101 of file unit.cc.

Referenced by BKE_unit_display_name_get().

◆ name_plural

const char* bUnitDef::name_plural

Abused a bit for the display name.

Definition at line 91 of file unit.cc.

◆ name_short

const char* bUnitDef::name_short

This is used for display.

Definition at line 93 of file unit.cc.

◆ scalar

double bUnitDef::scalar

The documentation for this struct was generated from the following file: