KiCad PCB EDA Suite
Loading...
Searching...
No Matches
color4d.h File Reference
#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 StructColorscolorRefs ()
 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)
 

Enumeration Type Documentation

◆ 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()[]

Definition at line 41 of file color4d.h.

Function Documentation

◆ colorRefs()