#include <color.hh>
◆ Color() [1/3]
◆ Color() [2/3]
| Color::Color |
( |
double |
red_, |
|
|
double |
green_, |
|
|
double |
blue_, |
|
|
double |
alpha_ = 1.0 |
|
) |
| |
|
inline |
Constructor. Use the given RGB values
◆ Color() [3/3]
| Color::Color |
( |
double |
gray, |
|
|
double |
alpha_ = 1.0 |
|
) |
| |
|
inlineexplicit |
Constructor. Create the given gray value
◆ getARGB32()
| uint32_t Color::getARGB32 |
( |
| ) |
const |
|
inline |
◆ getContrastingBlackOrWhite()
| Color Color::getContrastingBlackOrWhite |
( |
| ) |
const |
|
inline |
◆ getGdkColor()
| GdkColor Color::getGdkColor |
( |
| ) |
const |
|
inline |
◆ getHex()
| std::string Color::getHex |
( |
| ) |
const |
|
inline |
◆ getRGB24()
| uint32_t Color::getRGB24 |
( |
| ) |
const |
|
inline |
◆ operator*=()
| Color& Color::operator*= |
( |
double |
d | ) |
|
|
inline |
◆ operator+=()
◆ operator/=()
| Color& Color::operator/= |
( |
double |
d | ) |
|
|
inline |
◆ setAlpha() [1/2]
| Color& Color::setAlpha |
( |
double |
alpha_ | ) |
|
|
inline |
◆ setAlpha() [2/2]
| Color Color::setAlpha |
( |
double |
alpha_ | ) |
const |
|
inline |
130 {
return Color(*this).setAlpha(alpha_); }
◆ setColor()
| void Color::setColor |
( |
cairo_t * |
cr | ) |
const |
|
inline |
◆ alpha
| double Color::alpha {1.0} |
◆ blue
B value
Referenced by BOOST_AUTO_TEST_CASE(), getARGB32(), getContrastingBlackOrWhite(), getGdkColor(), getHex(), getRGB24(), anonymous_namespace{transparentoverlaypresentation.cc}::ColorComparer::operator()(), operator*=(), operator+=(), operator/=(), and setColor().
◆ green
| double Color::green {0.0} |
G value
Referenced by BOOST_AUTO_TEST_CASE(), getARGB32(), getContrastingBlackOrWhite(), getGdkColor(), getHex(), getRGB24(), anonymous_namespace{transparentoverlaypresentation.cc}::ColorComparer::operator()(), operator*=(), operator+=(), operator/=(), and setColor().
◆ red
R value
Referenced by BOOST_AUTO_TEST_CASE(), getARGB32(), getContrastingBlackOrWhite(), getGdkColor(), getHex(), getRGB24(), anonymous_namespace{transparentoverlaypresentation.cc}::ColorComparer::operator()(), operator*=(), operator+=(), operator/=(), and setColor().
The documentation for this class was generated from the following file: