KiCad PCB EDA Suite
panel_board_stackup.cpp File Reference
#include <convert_to_biu.h>
#include <macros.h>
#include <pcb_edit_frame.h>
#include <class_board.h>
#include <dialogs/dialog_color_picker.h>
#include <widgets/paged_dialog.h>
#include <widgets/layer_box_selector.h>
#include <wx/rawbmp.h>
#include <math/util.h>
#include "panel_board_stackup.h"
#include <panel_setup_layers.h>
#include "board_stackup_reporter.h"
#include <bitmaps.h>
#include <wx/clipbrd.h>
#include <wx/dataobj.h>
#include "dialog_dielectric_list_manager.h"
#include <wx/wupdlock.h>
#include <wx/richmsgdlg.h>

Go to the source code of this file.

Macros

#define ID_INCREMENT   256
 

Enumerations

enum  WIDGETS_IDS { ID_ITEM_MATERIAL = 10000, ID_ITEM_THICKNESS = ID_ITEM_MATERIAL + ID_INCREMENT, ID_ITEM_THICKNESS_LOCKED = ID_ITEM_THICKNESS + ID_INCREMENT, ID_ITEM_COLOR = ID_ITEM_THICKNESS_LOCKED + ID_INCREMENT }
 

Functions

static wxColor copperColor (220, 180, 30)
 
static wxColor dielectricColor (75, 120, 75)
 
static wxColor pasteColor (200, 200, 200)
 
static void drawBitmap (wxBitmap &aBitmap, wxColor aColor)
 

Macro Definition Documentation

◆ ID_INCREMENT

#define ID_INCREMENT   256

Definition at line 46 of file panel_board_stackup.cpp.

Enumeration Type Documentation

◆ WIDGETS_IDS

Enumerator
ID_ITEM_MATERIAL 
ID_ITEM_THICKNESS 
ID_ITEM_THICKNESS_LOCKED 
ID_ITEM_COLOR 

Definition at line 50 of file panel_board_stackup.cpp.

Function Documentation

◆ copperColor()

static wxColor copperColor ( 220  ,
180  ,
30   
)
static

◆ dielectricColor()

static wxColor dielectricColor ( 75  ,
120  ,
75   
)
static

◆ drawBitmap()

void drawBitmap ( wxBitmap &  aBitmap,
wxColor  aColor 
)
static

Definition at line 1503 of file panel_board_stackup.cpp.

1504 {
1505  wxNativePixelData data( aBitmap );
1506  wxNativePixelData::Iterator p(data);
1507 
1508  for( int yy = 0; yy < data.GetHeight(); yy++ )
1509  {
1510  wxNativePixelData::Iterator rowStart = p;
1511 
1512  for( int xx = 0; xx < data.GetWidth(); xx++ )
1513  {
1514  p.Red() = aColor.Red();
1515  p.Green() = aColor.Green();
1516  p.Blue() = aColor.Blue();
1517  ++p;
1518  }
1519 
1520  p = rowStart;
1521  p.OffsetY(data, 1);
1522  }
1523 }

Referenced by PANEL_SETUP_BOARD_STACKUP::updateIconColor().

◆ pasteColor()

static wxColor pasteColor ( 200  ,
200  ,
200   
)
static