Blender V4.3
blender::ColorTheme4< ChannelStorageType > Class Template Referencefinal

#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< floatto_4f () const
 
ColorTheme4< uint8_tto_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
 

Detailed Description

template<typename ChannelStorageType>
class blender::ColorTheme4< ChannelStorageType >

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.

Constructor & Destructor Documentation

◆ ColorTheme4() [1/3]

template<typename ChannelStorageType >
blender::ColorTheme4< ChannelStorageType >::ColorTheme4 ( )
constexprdefault

◆ ColorTheme4() [2/3]

template<typename ChannelStorageType >
blender::ColorTheme4< ChannelStorageType >::ColorTheme4 ( const ChannelStorageType * rgba)
inlineconstexpr

Definition at line 246 of file BLI_color.hh.

◆ ColorTheme4() [3/3]

template<typename ChannelStorageType >
blender::ColorTheme4< ChannelStorageType >::ColorTheme4 ( ChannelStorageType r,
ChannelStorageType g,
ChannelStorageType b,
ChannelStorageType a )
inlineconstexpr

Definition at line 251 of file BLI_color.hh.

Member Function Documentation

◆ to_4b()

template<typename ChannelStorageType >
ColorTheme4< uint8_t > blender::ColorTheme4< ChannelStorageType >::to_4b ( ) const
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().

◆ to_4f()

template<typename ChannelStorageType >
ColorTheme4< float > blender::ColorTheme4< ChannelStorageType >::to_4f ( ) const
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().


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