KiCad PCB EDA Suite
color_swatch.h File Reference
#include <wx/bitmap.h>
#include <wx/gdicmn.h>
#include <wx/panel.h>
#include <wx/statbmp.h>
#include <wx/window.h>
#include <functional>
#include <gal/color4d.h>

Go to the source code of this file.

Classes

class  COLOR_SWATCH
 Class representing a simple color swatch, of the kind used to set layer colors. More...
 

Enumerations

enum  SWATCH_SIZE { SWATCH_SMALL, SWATCH_MEDIUM, SWATCH_LARGE, SWATCH_EXPAND }
 

Functions

static const wxSize SWATCH_SIZE_SMALL_DU (8, 6)
 
static const wxSize SWATCH_SIZE_MEDIUM_DU (24, 10)
 
static const wxSize SWATCH_SIZE_LARGE_DU (24, 16)
 
static const wxSize CHECKERBOARD_SIZE_DU (3, 3)
 
 wxDECLARE_EVENT (COLOR_SWATCH_CHANGED, wxCommandEvent)
 Event signalling a swatch has changed color. More...
 

Enumeration Type Documentation

◆ SWATCH_SIZE

Enumerator
SWATCH_SMALL 
SWATCH_MEDIUM 
SWATCH_LARGE 
SWATCH_EXPAND 

Definition at line 38 of file color_swatch.h.

Function Documentation

◆ CHECKERBOARD_SIZE_DU()

◆ SWATCH_SIZE_LARGE_DU()

static const wxSize SWATCH_SIZE_LARGE_DU ( 24  ,
16   
)
static

◆ SWATCH_SIZE_MEDIUM_DU()

static const wxSize SWATCH_SIZE_MEDIUM_DU ( 24  ,
10   
)
static

◆ SWATCH_SIZE_SMALL_DU()

static const wxSize SWATCH_SIZE_SMALL_DU ( ,
 
)
static

◆ wxDECLARE_EVENT()

wxDECLARE_EVENT ( COLOR_SWATCH_CHANGED  ,
wxCommandEvent   
)

Event signalling a swatch has changed color.