|
Blender V4.3
|
#include <BLI_color.hh>
Inherits blender::ColorRGBA< ChannelStorageType, eSpace::Theme, eAlpha::Straight >.
Public Member Functions | |
| constexpr | ColorTheme4 ()=default |
| constexpr | ColorTheme4 (const ChannelStorageType *rgba) |
| constexpr | ColorTheme4 (ChannelStorageType r, ChannelStorageType g, ChannelStorageType b, ChannelStorageType a) |
| ColorTheme4< float > | to_4f () const |
| ColorTheme4< uint8_t > | to_4b () const |
Public Member Functions inherited from blender::ColorRGBA< ChannelStorageType, eSpace::Theme, eAlpha::Straight > | |
| constexpr | ColorRGBA ()=default |
| constexpr | ColorRGBA (const ChannelStorageType rgba[4]) |
| constexpr | ColorRGBA (const ChannelStorageType r, const ChannelStorageType g, const ChannelStorageType b, const ChannelStorageType a) |
| operator ChannelStorageType * () | |
| operator const ChannelStorageType * () const | |
| uint64_t | hash () const |
Additional Inherited Members | |
Public Attributes inherited from blender::ColorRGBA< ChannelStorageType, eSpace::Theme, eAlpha::Straight > | |
| ChannelStorageType | r |
| ChannelStorageType | g |
| ChannelStorageType | b |
| ChannelStorageType | a |
Theme color template class.
Don't use directly, but use ColorTheme4b/ColorTheme4b.
This has been implemented as a template to improve inlining. When implemented as concrete classes (ColorTheme4b/f) the functions would be hidden in a compile unit what wouldn't be inlined.
Definition at line 242 of file BLI_color.hh.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 246 of file BLI_color.hh.
|
inlineconstexpr |
Definition at line 251 of file BLI_color.hh.
|
inline |
Change precision of color to uint8_t.
Definition at line 275 of file BLI_color.hh.
References blender::BLI_color_convert_to_theme4b().
Referenced by blender::tests::TEST().
|
inline |
Change precision of color to float.
Definition at line 262 of file BLI_color.hh.
References blender::BLI_color_convert_to_theme4f().
Referenced by blender::tests::TEST().