KiCad PCB EDA Suite
dialog_color_picker.cpp File Reference
#include "dialog_color_picker.h"
#include <cmath>

Go to the source code of this file.

Macros

#define ALPHA_MAX   100
 
#define ID_COLOR_BLACK   2000
 
#define SLOPE_AXIS   50.0
 
#define SLOPE_AXIS   50.0
 

Functions

void configureSpinCtrl (wxSpinCtrl *aCtrl)
 

Macro Definition Documentation

◆ ALPHA_MAX

#define ALPHA_MAX   100

Definition at line 24 of file dialog_color_picker.cpp.

◆ ID_COLOR_BLACK

#define ID_COLOR_BLACK   2000

◆ SLOPE_AXIS [1/2]

#define SLOPE_AXIS   50.0

◆ SLOPE_AXIS [2/2]

#define SLOPE_AXIS   50.0

Function Documentation

◆ configureSpinCtrl()

void configureSpinCtrl ( wxSpinCtrl *  aCtrl)

Definition at line 27 of file dialog_color_picker.cpp.

28 {
29  wxSize textLength = aCtrl->GetTextExtent( "999" );
30  wxSize ctrlSize = aCtrl->GetSizeFromTextSize( textLength );
31 
32  aCtrl->SetMinSize( ctrlSize );
33  aCtrl->SetSize( ctrlSize );
34 }

Referenced by DIALOG_COLOR_PICKER::TransferDataToWindow().