Blender V5.3
blender::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 90 of file unit.cc.

Member Data Documentation

◆ bias

double blender::bUnitDef::bias

◆ flag

int blender::bUnitDef::flag

◆ identifier

const char* blender::bUnitDef::identifier

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

Definition at line 105 of file unit.cc.

Referenced by blender::BKE_unit_identifier_get().

◆ name

◆ name_alt

const char* blender::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 100 of file unit.cc.

Referenced by blender::unit_find(), and blender::unit_replace().

◆ name_display

const char* blender::bUnitDef::name_display

Can be nullptr.

Definition at line 103 of file unit.cc.

Referenced by blender::BKE_unit_display_name_get().

◆ name_plural

const char* blender::bUnitDef::name_plural

Abused a bit for the display name.

Definition at line 93 of file unit.cc.

Referenced by blender::unit_find(), and blender::unit_replace().

◆ name_short

const char* blender::bUnitDef::name_short

This is used for display.

Definition at line 95 of file unit.cc.

Referenced by blender::BKE_unit_display_name_short_get(), blender::unit_as_string(), blender::unit_find(), and blender::unit_replace().

◆ scalar


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