|
| basic_rgb_color () |
|
| basic_rgb_color (const self_type &aOther) |
|
| basic_rgb_color (const vec3 &aBaseNoAlpha) |
|
| basic_rgb_color (const vec4 &aBase) |
|
| basic_rgb_color (view_component aRed, view_component aGreen, view_component aBlue, view_component aAlpha=0xFF) |
|
| basic_rgb_color (int32_t aRed, int32_t aGreen, int32_t aBlue, int32_t aAlpha=0xFF) |
|
| basic_rgb_color (uint32_t aRed, uint32_t aGreen, uint32_t aBlue, uint32_t aAlpha=0xFF) |
|
template<typename T > |
| basic_rgb_color (T aRed, T aGreen, T aBlue, T aAlpha=1.0, std::enable_if_t< std::is_scalar_v< T > &&!std::is_same_v< view_component, T >, sfinae >={}) |
|
| basic_rgb_color (argb aValue) |
|
self_type & | operator= (const self_type &aOther) |
|
self_type & | operator= (const base_type &aOther) |
|
view_component | red () const |
|
view_component | green () const |
|
view_component | blue () const |
|
template<typename T > |
T | red () const |
|
template<typename T > |
T | green () const |
|
template<typename T > |
T | blue () const |
|
return_type & | set_red (view_component aRed) |
|
return_type & | set_green (view_component aGreen) |
|
return_type & | set_blue (view_component aBlue) |
|
template<typename T > |
return_type & | set_red (T aRed) |
|
template<typename T > |
return_type & | set_green (T aGreen) |
|
template<typename T > |
return_type & | set_blue (T aBlue) |
|
return_type | with_red (view_component aRed) const |
|
return_type | with_green (view_component aGreen) const |
|
return_type | with_blue (view_component aBlue) const |
|
template<typename T > |
return_type | with_red (T aRed) const |
|
template<typename T > |
return_type | with_green (T aGreen) const |
|
template<typename T > |
return_type | with_blue (T aBlue) const |
|
argb | as_argb () const |
|
hsl_color | to_hsl () const |
|
hsv_color | to_hsv () const |
|
scalar | intensity () const |
|
bool | similar_intensity (const self_type &aOther, scalar aThreshold=0.5) const |
|
return_type | mid (const self_type &aOther) const |
|
return_type | mix (const self_type &aOther, scalar aValue) const |
|
bool | light (scalar aThreshold=0.50) const |
|
bool | dark (scalar aThreshold=0.50) const |
|
return_type & | lighten (view_component aDelta) |
|
return_type & | darken (view_component aDelta) |
|
return_type | lighter (view_component aDelta) const |
|
return_type | darker (view_component aDelta) const |
|
return_type & | shade (view_component aDelta) |
|
return_type & | unshade (view_component aDelta) |
|
return_type | shaded (view_component aDelta) const |
|
return_type | unshaded (view_component aDelta) const |
|
return_type | monochrome () const |
|
return_type | same_lightness_as (const self_type &aOther) const |
|
return_type | with_lightness (scalar aLightness) const |
|
return_type | inverse () const |
|
return_type & | operator+= (view_component aDelta) |
|
return_type & | operator-= (view_component aDelta) |
|
return_type | operator~ () const |
|
bool | operator== (const self_type &aOther) const |
|
bool | operator< (const self_type &aOther) const |
|
auto | operator<=> (const self_type &aOther) const =default |
|
std::string | to_string () const |
|
std::string | to_hex_string () const |
|
view_component | alpha () const |
|
template<typename T > |
T | alpha () const |
|
return_type & | set_alpha (view_component aAlpha) |
|
template<typename T > |
return_type & | set_alpha (T aAlpha) |
|
return_type | with_alpha (view_component aAlpha) const |
|
template<typename T > |
return_type | with_alpha (T aAlpha) const |
|
return_type | with_combined_alpha (view_component aAlpha) const |
|
template<typename T > |
return_type | with_combined_alpha (T aAlpha) const |
|
| basic_color (const basic_vector< BaseComponent, ColorComponentCount > &aNoAlpha) |
|
| basic_color (const self_type &aOther) |
|
self_type & | operator= (const self_type &aOther) |
|
view_component | alpha () const |
|
template<typename T > |
T | alpha () const |
|
return_type & | set_alpha (view_component aAlpha) |
|
template<typename T > |
return_type & | set_alpha (T aAlpha) |
|
return_type | with_alpha (view_component aAlpha) const |
|
template<typename T > |
return_type | with_alpha (T aAlpha) const |
|
return_type | with_combined_alpha (view_component aAlpha) const |
|
template<typename T > |
return_type | with_combined_alpha (T aAlpha) const |
|
| basic_vector () |
|
template<typename SFINAE = int> |
| basic_vector (value_type x, typename std::enable_if_t< Size==1, SFINAE >=0) |
|
template<typename SFINAE = int> |
| basic_vector (value_type x, value_type y, typename std::enable_if_t< Size==2, SFINAE >=0) |
|
template<typename SFINAE = int> |
| basic_vector (value_type x, value_type y, value_type z, typename std::enable_if_t< Size==3, SFINAE >=0) |
|
template<typename SFINAE = int> |
| basic_vector (value_type x, value_type y, value_type z, value_type w, typename std::enable_if_t< Size==4, SFINAE >=0) |
|
template<typename... Arguments> |
| basic_vector (const value_type &value, Arguments &&... aArguments) |
|
template<typename... Arguments> |
| basic_vector (value_type &&value, Arguments &&... aArguments) |
|
| basic_vector (const array_type &v) |
|
| basic_vector (std::initializer_list< value_type > values) |
|
template<typename V , typename A , uint32_t S, uint32_t... Indexes> |
| basic_vector (const swizzle< V, A, S, Indexes... > &aSwizzle) |
|
| basic_vector (const self_type &other) |
|
| basic_vector (self_type &&other) |
|
template<typename T2 > |
| basic_vector (const basic_vector< T2, Size, Type > &other) |
|
template<typename T2 , uint32_t Size2, typename SFINAE = int> |
| basic_vector (const basic_vector< T2, Size2, Type > &other, typename std::enable_if_t< Size2< Size, SFINAE >=0) |
|
self_type & | operator= (const self_type &other) |
|
self_type & | operator= (self_type &&other) |
|
self_type & | operator= (std::initializer_list< value_type > values) |
|
value_type | operator[] (uint32_t aIndex) const |
|
value_type & | operator[] (uint32_t aIndex) |
|
const_iterator | begin () const |
|
const_iterator | end () const |
|
iterator | begin () |
|
iterator | end () |
|
| operator const array_type & () const |
|
template<typename T2 > |
basic_vector< T2, Size, Type > | as () const |
|
bool | operator== (const self_type &right) const |
|
bool | operator!= (const self_type &right) const |
|
self_type & | operator+= (value_type value) |
|
self_type & | operator-= (value_type value) |
|
self_type & | operator*= (value_type value) |
|
self_type & | operator/= (value_type value) |
|
self_type & | operator+= (const self_type &right) |
|
self_type & | operator-= (const self_type &right) |
|
self_type & | operator*= (const self_type &right) |
|
self_type & | operator/= (const self_type &right) |
|
self_type | operator- () const |
|
self_type | scale (const self_type &right) const |
|
value_type | magnitude () const |
|
self_type | normalized () const |
|
self_type | min (const self_type &right) const |
|
self_type | max (const self_type &right) const |
|
value_type | min () const |
|
self_type | ceil () const |
|
self_type | floor () const |
|
self_type | round () const |
|
value_type | distance (const self_type &right) const |
|
value_type | dot (const self_type &right) const |
|
template<typename SFINAE = self_type> |
std::enable_if_t< Size==3, SFINAE > | cross (const self_type &right) const |
|
self_type | hadamard_product (const self_type &right) const |
|
|
union { | |
|
array_type v | |
|
struct { | |
|
value_type x | |
|
value_type y | |
|
value_type z | |
|
} | | |
|
swizzle< vector_type, array_type, 2, 0, 0 > xx | |
|
swizzle< vector_type, array_type, 2, 0, 1 > xy | |
|
swizzle< vector_type, array_type, 2, 0, 2 > xz | |
|
swizzle< vector_type, array_type, 2, 1, 0 > yx | |
|
swizzle< vector_type, array_type, 2, 1, 1 > yy | |
|
swizzle< vector_type, array_type, 2, 1, 2 > yz | |
|
swizzle< vector_type, array_type, 2, 2, 0 > zx | |
|
swizzle< vector_type, array_type, 2, 2, 1 > zy | |
|
swizzle< vector_type, array_type, 2, 2, 2 > zz | |
|
swizzle< vector_type, array_type, 3, 0, 0, 0 > xxx | |
|
swizzle< vector_type, array_type, 3, 0, 0, 1 > xxy | |
|
swizzle< vector_type, array_type, 3, 0, 0, 2 > xxz | |
|
swizzle< vector_type, array_type, 3, 0, 1, 0 > xyx | |
|
swizzle< vector_type, array_type, 3, 0, 1, 1 > xyy | |
|
swizzle< vector_type, array_type, 3, 0, 1, 2 > xyz | |
|
swizzle< vector_type, array_type, 3, 1, 0, 0 > yxx | |
|
swizzle< vector_type, array_type, 3, 1, 0, 1 > yxy | |
|
swizzle< vector_type, array_type, 3, 1, 0, 2 > yxz | |
|
swizzle< vector_type, array_type, 3, 1, 1, 0 > yyx | |
|
swizzle< vector_type, array_type, 3, 1, 1, 1 > yyy | |
|
swizzle< vector_type, array_type, 3, 1, 1, 2 > yyz | |
|
swizzle< vector_type, array_type, 3, 1, 2, 0 > yzx | |
|
swizzle< vector_type, array_type, 3, 1, 2, 1 > yzy | |
|
swizzle< vector_type, array_type, 3, 1, 2, 2 > yzz | |
|
swizzle< vector_type, array_type, 3, 2, 0, 0 > zxx | |
|
swizzle< vector_type, array_type, 3, 2, 0, 1 > zxy | |
|
swizzle< vector_type, array_type, 3, 2, 0, 2 > zxz | |
|
swizzle< vector_type, array_type, 3, 2, 1, 0 > zyx | |
|
swizzle< vector_type, array_type, 3, 2, 1, 1 > zyy | |
|
swizzle< vector_type, array_type, 3, 2, 1, 2 > zyz | |
|
swizzle< vector_type, array_type, 3, 2, 2, 0 > zzx | |
|
swizzle< vector_type, array_type, 3, 2, 2, 1 > zzy | |
|
swizzle< vector_type, array_type, 3, 2, 2, 2 > zzz | |
|
}; | | |
|
template<
color_space ColorSpace, typename BaseComponent, typename ViewComponent = BaseComponent, typename Derived = void>
class neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >
Definition at line 175 of file color.hpp.