Blender  V3.3
Public Attributes | List of all members
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 73 of file unit.c.

Member Data Documentation

◆ bias

double bUnitDef::bias

Needed for converting temperatures.

Definition at line 92 of file unit.c.

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

◆ flag

int bUnitDef::flag

Definition at line 93 of file unit.c.

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

◆ identifier

const char* bUnitDef::identifier

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

Definition at line 88 of file unit.c.

Referenced by BKE_unit_identifier_get().

◆ name

const char* bUnitDef::name

◆ name_alt

const char* bUnitDef::name_alt

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

Definition at line 83 of file unit.c.

Referenced by unit_find(), and unit_replace().

◆ name_display

const char* bUnitDef::name_display

Can be NULL.

Definition at line 86 of file unit.c.

◆ name_plural

const char* bUnitDef::name_plural

Abused a bit for the display name.

Definition at line 76 of file unit.c.

Referenced by unit_find(), and unit_replace().

◆ name_short

const char* bUnitDef::name_short

This is used for display.

Definition at line 78 of file unit.c.

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

◆ scalar

double bUnitDef::scalar

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