Engauge Digitizer 2
Loading...
Searching...
No Matches
Enumerations | Functions
ColorPalette.h File Reference
#include <QString>
Include dependency graph for ColorPalette.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ColorPalette {
  COLOR_PALETTE_BLACK , COLOR_PALETTE_BLUE , COLOR_PALETTE_CYAN , COLOR_PALETTE_GOLD ,
  COLOR_PALETTE_GREEN , COLOR_PALETTE_MAGENTA , COLOR_PALETTE_RED , COLOR_PALETTE_YELLOW ,
  COLOR_PALETTE_TRANSPARENT , NUM_PALETTE_COLORS
}
 

Functions

QString colorPaletteToString (ColorPalette colorPalette)
 

Enumeration Type Documentation

◆ ColorPalette

Enumerator
COLOR_PALETTE_BLACK 
COLOR_PALETTE_BLUE 
COLOR_PALETTE_CYAN 
COLOR_PALETTE_GOLD 
COLOR_PALETTE_GREEN 
COLOR_PALETTE_MAGENTA 
COLOR_PALETTE_RED 
COLOR_PALETTE_YELLOW 
COLOR_PALETTE_TRANSPARENT 
NUM_PALETTE_COLORS 

Definition at line 12 of file ColorPalette.h.

12 {
23};
@ COLOR_PALETTE_TRANSPARENT
@ COLOR_PALETTE_GREEN
@ COLOR_PALETTE_MAGENTA
@ COLOR_PALETTE_BLACK
@ COLOR_PALETTE_GOLD
@ COLOR_PALETTE_RED
@ COLOR_PALETTE_BLUE
@ NUM_PALETTE_COLORS
@ COLOR_PALETTE_CYAN
@ COLOR_PALETTE_YELLOW

Function Documentation

◆ colorPaletteToString()

QString colorPaletteToString ( ColorPalette colorPalette)
extern

Definition at line 9 of file ColorPalette.cpp.

10{
11 switch (colorPalette) {
13 return "Black";
14
16 return "Blue";
17
19 return "Cyan";
20
22 return "Gold";
23
25 return "Green";
26
28 return "Magenta";
29
31 return "Red";
32
34 return "Transparent";
35
37 return "Yellow";
38
39 default:
40 return "Unknown";
41 }
42}