KiCad PCB EDA Suite
|
#include <kicommon.h>
#include <wx/debug.h>
#include <wx/colour.h>
#include <wx/string.h>
#include <hash.h>
#include <nlohmann/json_fwd.hpp>
Go to the source code of this file.
Classes | |
struct | StructColors |
class | KIGFX::COLOR4D |
A color representation with 4 components: red, green, blue, alpha. More... | |
struct | std |
Namespaces | |
namespace | KIGFX |
The Cairo implementation of the graphics abstraction layer. | |
Enumerations | |
enum | EDA_COLOR_T { UNSPECIFIED_COLOR = -1 , BLACK = 0 , DARKDARKGRAY , DARKGRAY , LIGHTGRAY , WHITE , LIGHTYELLOW , DARKBLUE , DARKGREEN , DARKCYAN , DARKRED , DARKMAGENTA , DARKBROWN , BLUE , GREEN , CYAN , RED , MAGENTA , BROWN , LIGHTBLUE , LIGHTGREEN , LIGHTCYAN , LIGHTRED , LIGHTMAGENTA , YELLOW , PUREBLUE , PUREGREEN , PURECYAN , PURERED , PUREMAGENTA , PUREYELLOW , LIGHTERORANGE , DARKORANGE , ORANGE , LIGHTORANGE , PUREORANGE , NBCOLORS , HIGHLIGHT_FLAG = ( 1<<19 ) , MASKCOLOR = 31 } |
Legacy color enumeration. More... | |
Functions | |
KICOMMON_API const StructColors * | colorRefs () |
Global list of legacy color names, still used all over the place for constructing COLOR4D's. | |
bool | KIGFX::operator== (const COLOR4D &lhs, const COLOR4D &rhs) |
Equality operator, are two colors equal. | |
bool | KIGFX::operator!= (const COLOR4D &lhs, const COLOR4D &rhs) |
Not equality operator, are two colors not equal. | |
bool | KIGFX::operator< (const COLOR4D &lhs, const COLOR4D &rhs) |
std::ostream & | KIGFX::operator<< (std::ostream &aStream, COLOR4D const &aColor) |
Syntactic sugar for outputting colors to strings. | |
void | KIGFX::to_json (nlohmann::json &aJson, const COLOR4D &aColor) |
void | KIGFX::from_json (const nlohmann::json &aJson, COLOR4D &aColor) |
enum EDA_COLOR_T |
Legacy color enumeration.
Also contains a flag and the alpha value in the upper bits
Enumerator | |
---|---|
UNSPECIFIED_COLOR | |
BLACK | |
DARKDARKGRAY | |
DARKGRAY | |
LIGHTGRAY | |
WHITE | |
LIGHTYELLOW | |
DARKBLUE | |
DARKGREEN | |
DARKCYAN | |
DARKRED | |
DARKMAGENTA | |
DARKBROWN | |
BLUE | |
GREEN | |
CYAN | |
RED | |
MAGENTA | |
BROWN | |
LIGHTBLUE | |
LIGHTGREEN | |
LIGHTCYAN | |
LIGHTRED | |
LIGHTMAGENTA | |
YELLOW | |
PUREBLUE | |
PUREGREEN | |
PURECYAN | |
PURERED | |
PUREMAGENTA | |
PUREYELLOW | |
LIGHTERORANGE | |
DARKORANGE | |
ORANGE | |
LIGHTORANGE | |
PUREORANGE | |
NBCOLORS | Number of colors. |
HIGHLIGHT_FLAG | |
MASKCOLOR | mask for color index into colorRefs()[] |
KICOMMON_API const StructColors * colorRefs | ( | ) |
Global list of legacy color names, still used all over the place for constructing COLOR4D's.
Definition at line 40 of file color4d.cpp.
References BLACK, BLUE, BROWN, CYAN, DARKBLUE, DARKBROWN, DARKCYAN, DARKDARKGRAY, DARKGRAY, DARKGREEN, DARKMAGENTA, DARKORANGE, DARKRED, GREEN, LIGHTBLUE, LIGHTCYAN, LIGHTERORANGE, LIGHTGRAY, LIGHTGREEN, LIGHTMAGENTA, LIGHTORANGE, LIGHTRED, LIGHTYELLOW, MAGENTA, NBCOLORS, ORANGE, PUREBLUE, PURECYAN, PUREGREEN, PUREMAGENTA, PUREORANGE, PURERED, PUREYELLOW, RED, TS, WHITE, and YELLOW.
Referenced by KIGFX::COLOR4D::COLOR4D(), KIGFX::COLOR4D::FindNearestLegacyColor(), and DIALOG_COLOR_PICKER::initDefinedColors().