![]() |
Mapper
0.9.0
API documentation
|
The MapColorCmyk class provides a datatype for storing and transferring opaque CMYK colors. More...
#include <map_color.h>
Public Member Functions | |
MapColorCmyk () noexcept=default | |
Constructs a black color. More... | |
MapColorCmyk (float c, float m, float y, float k) noexcept | |
Constructs a color with the given components. More... | |
MapColorCmyk (const MapColorCmyk &other) noexcept=default | |
Constructs a copy of the given CMYK color. More... | |
MapColorCmyk (const QColor &other) noexcept | |
Constructs a CMYK color of the given QColor. More... | |
MapColorCmyk & | operator= (const MapColorCmyk &other)=default |
Assigns another color's value to this color. More... | |
operator QColor () const | |
Converts this color to a QColor. More... | |
bool | isBlack () const |
Returns true if this color is black. More... | |
bool | isWhite () const |
Returns true if this color is white. More... | |
Public Attributes | |
float | c = 0 |
The cyan component. More... | |
float | m = 0 |
The magenta component. More... | |
float | y = 0 |
The yellow component. More... | |
float | k = 1 |
The black component (aka key). More... | |
The MapColorCmyk class provides a datatype for storing and transferring opaque CMYK colors.
Components (c, m, y, k) are floats in the range [0.0; 1.0].
|
defaultnoexcept |
Constructs a black color.
|
inlinenoexcept |
Constructs a color with the given components.
|
defaultnoexcept |
Constructs a copy of the given CMYK color.
|
inlinenoexcept |
Constructs a CMYK color of the given QColor.
Used for type conversions.
|
inline |
Returns true if this color is black.
|
inline |
Returns true if this color is white.
|
default |
Assigns another color's value to this color.
float OpenOrienteering::MapColorCmyk::c = 0 |
The cyan component.
float OpenOrienteering::MapColorCmyk::k = 1 |
The black component (aka key).
float OpenOrienteering::MapColorCmyk::m = 0 |
The magenta component.
float OpenOrienteering::MapColorCmyk::y = 0 |
The yellow component.