Blender  V3.3
Public Member Functions | List of all members
blender::ColorTheme4< ChannelStorageType > Class Template Reference

#include <BLI_color.hh>

Inheritance diagram for blender::ColorTheme4< ChannelStorageType >:
blender::ColorRGBA< ChannelStorageType, eSpace::Theme, eAlpha::Straight >

Public Member Functions

constexpr ColorTheme4 ()
 
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 251 of file BLI_color.hh.

Constructor & Destructor Documentation

◆ ColorTheme4() [1/3]

template<typename ChannelStorageType >
constexpr blender::ColorTheme4< ChannelStorageType >::ColorTheme4 ( )
inlineconstexpr

Definition at line 253 of file BLI_color.hh.

References blender::Straight, and blender::Theme.

◆ ColorTheme4() [2/3]

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

Definition at line 255 of file BLI_color.hh.

References blender::Straight, and blender::Theme.

◆ ColorTheme4() [3/3]

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

Definition at line 260 of file BLI_color.hh.

References blender::Straight, and blender::Theme.

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 284 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 271 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: