|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Classes | |
| struct | ColorFloats |
| struct | ColorInfo |
Typedefs | |
| using | Color = uint32_t |
Functions | |
| Color | ChangeOpacity (const Color argb, const float opacity) |
| Change the opacity of a given ARGB color. | |
| Color | ConvertToRGBA (const Color argb) |
| Convert given ARGB color to RGBA color value. | |
| Color | ConvertToARGB (const Color rgba) |
| Convert given RGBA color to ARGB color value. | |
| Color | ConvertToBGR (const Color argb) |
| Convert given ARGB color to BGR color value. | |
| Color | ConvertHexToColor (const std::string &hexColor) |
| Convert given hex value to Color value. | |
| Color | ConvertIntToRGB (int r, int g, int b) |
| Convert given RGB int values to RGB color value. | |
| ColorInfo | MakeColorInfo (const Color &argb) |
| Create a ColorInfo from an ARGB Color to get additional information of the color and allow to be sorted with a color comparer. | |
| ColorInfo | MakeColorInfo (const std::string &hexColor) |
| Create a ColorInfo from an HEX color value to get additional information of the color and allow to be sorted with a color comparer. | |
| bool | comparePairColorInfo (const std::pair< std::string, ColorInfo > &a, const std::pair< std::string, ColorInfo > &b) |
| Comparer for pair string/ColorInfo to sort colors in a hue scale. | |
| ColorFloats | ConvertToFloats (const Color argb) |
| Convert given ARGB color to ColorFloats. | |
| std::string | ConvertToHexRGB (const Color argb) |
| Convert given ARGB color to hex RGB color value. | |
Variables | |
| constexpr Color | NONE = 0x00000000 |
| constexpr Color | LIMITED_BLACK = 0xFF101010 |
| constexpr Color | WHITE = 0xFFFFFFFF |
| constexpr Color | SILVER = 0xFFC0C0C0 |
| constexpr Color | GRAY = 0xFF808080 |
| constexpr Color | BLACK = 0xFF000000 |
| constexpr Color | RED = 0xFFFF0000 |
| constexpr Color | MAROON = 0xFF800000 |
| constexpr Color | YELLOW = 0xFFFFFF00 |
| constexpr Color | OLIVE = 0xFF808000 |
| constexpr Color | LIME = 0xFF00FF00 |
| constexpr Color | GREEN = 0xFF008000 |
| constexpr Color | AQUA = 0xFF00FFFF |
| constexpr Color | TEAL = 0xFF008080 |
| constexpr Color | BLUE = 0xFF0000FF |
| constexpr Color | NAVY = 0xFF000080 |
| constexpr Color | FUCHSIA = 0xFFFF00FF |
| constexpr Color | PURPLE = 0xFF800080 |
| constexpr Color | MAGENTA = 0xFFFF00FF |
| constexpr Color | CYAN = 0xFF00FFFF |
| constexpr auto | HTML_BASIC_COLORS |
| W3C HTML 16 basic color list. | |
| using KODI::UTILS::COLOR::Color = uint32_t |
Change the opacity of a given ARGB color.
| color | The original color |
| opacity | The opacity value as a float |
| bool KODI::UTILS::COLOR::comparePairColorInfo | ( | const std::pair< std::string, ColorInfo > & | a, |
| const std::pair< std::string, ColorInfo > & | b ) |
Comparer for pair string/ColorInfo to sort colors in a hue scale.
| Color KODI::UTILS::COLOR::ConvertHexToColor | ( | const std::string & | hexColor | ) |
Convert given hex value to Color value.
| hexColor | The original hex color |
Convert given RGB int values to RGB color value.
| r | The red value |
| g | The green value |
| b | The blue value |
Convert given RGBA color to ARGB color value.
| color | The original color |
Convert given ARGB color to BGR color value.
| color | The original color |
| ColorFloats KODI::UTILS::COLOR::ConvertToFloats | ( | const Color | argb | ) |
Convert given ARGB color to ColorFloats.
| color | The original color |
| std::string KODI::UTILS::COLOR::ConvertToHexRGB | ( | const Color | argb | ) |
Convert given ARGB color to hex RGB color value.
| color | The original color |
Convert given ARGB color to RGBA color value.
| color | The original color |
| ColorInfo KODI::UTILS::COLOR::MakeColorInfo | ( | const std::string & | hexColor | ) |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
W3C HTML 16 basic color list.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |