#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
54 {
55 }
double green
Definition color.hh:41
double blue
Definition color.hh:42
double red
Definition color.hh:40
double alpha
Definition color.hh:39
◆ 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 |
uint16_t shortFromDouble(double d)
Definition color.hh:23
◆ getHex()
| std::string Color::getHex |
( |
| ) |
const |
|
inline |
◆ getRGB24()
| uint32_t Color::getRGB24 |
( |
| ) |
const |
|
inline |
◆ operator*=()
| Color & Color::operator*= |
( |
double |
d | ) |
|
|
inline |
85 {
90 return *this;
91 }
◆ operator+=()
67 {
72 return *this;
73 }
◆ operator/=()
| Color & Color::operator/= |
( |
double |
d | ) |
|
|
inline |
76 {
81 return *this;
82 }
◆ 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
◆ green
| double Color::green {0.0} |
◆ red
The documentation for this class was generated from the following file:
- libs/plugin-interfaces/inc/scroom/color.hh