Blender V5.0
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.

Referenced by BKE_unit_apply_preferred_unit(), unit_as_string(), and unit_scale_str().

◆ flag

int bUnitDef::flag

Definition at line 108 of file unit.cc.

Referenced by BKE_unit_is_suppressed(), unit_as_string(), unit_find(), and unit_replace().

◆ 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.

Referenced by BKE_unit_identifier_get().

◆ name

◆ 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.

Referenced by unit_find(), and unit_replace().

◆ 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.

Referenced by unit_find(), and unit_replace().

◆ name_short

const char* bUnitDef::name_short

This is used for display.

Definition at line 93 of file unit.cc.

Referenced by unit_as_string(), unit_find(), and unit_replace().

◆ scalar


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