KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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>
#include <dialogs/dialog_color_picker.h>

Go to the source code of this file.

Classes

class  COLOR_SWATCH
 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 signaling a swatch has changed color.
 

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 signaling a swatch has changed color.