KiCad PCB EDA Suite
|
#include <map>
#include <nlohmann/json.hpp>
#include <gal/color4d.h>
#include <i18n_utility.h>
#include <wx/crt.h>
#include <math/util.h>
#include <core/kicad_algo.h>
Go to the source code of this file.
Namespaces | |
namespace | KIGFX |
The Cairo implementation of the graphics abstraction layer. | |
Macros | |
#define | TS(string) wxString( _HKI( string ) ).ToStdString() |
Functions | |
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) |
#define TS | ( | string | ) | wxString( _HKI( string ) ).ToStdString() |
Definition at line 36 of file color4d.cpp.
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().