KiCad PCB EDA Suite
Loading...
Searching...
No Matches
layer_presentation.cpp File Reference
#include "widgets/layer_presentation.h"
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <gal/color4d.h>

Go to the source code of this file.

Variables

static constexpr unsigned BM_LAYERICON_SIZE = 24
 
static const char s_BitmapLayerIcon [BM_LAYERICON_SIZE][BM_LAYERICON_SIZE]
 
static COLOR4D ICON_WHITE { 0.86, 0.86, 0.86, 1.0 }
 
static COLOR4D ICON_BLACK { 0.28, 0.28, 0.28, 1.0 }
 

Variable Documentation

◆ BM_LAYERICON_SIZE

constexpr unsigned BM_LAYERICON_SIZE = 24
staticconstexpr

Definition at line 72 of file layer_presentation.cpp.

Referenced by LAYER_PRESENTATION::CreateLayerPairIcon().

◆ ICON_BLACK

COLOR4D ICON_BLACK { 0.28, 0.28, 0.28, 1.0 }
static

Definition at line 105 of file layer_presentation.cpp.

Referenced by LAYER_PRESENTATION::CreateLayerPairIcon().

◆ ICON_WHITE

COLOR4D ICON_WHITE { 0.86, 0.86, 0.86, 1.0 }
static

Definition at line 104 of file layer_presentation.cpp.

Referenced by LAYER_PRESENTATION::CreateLayerPairIcon().

◆ s_BitmapLayerIcon

const char s_BitmapLayerIcon[BM_LAYERICON_SIZE][BM_LAYERICON_SIZE]
static
Initial value:
= {
{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 0, 3, 3, 3, 3, 3 },
{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 0, 3, 3, 3, 3, 3 },
{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 0, 3, 3, 3, 3, 3, 3 },
{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 0, 3, 3, 3, 3, 3, 3 },
{ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1,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