KiCad PCB EDA Suite
layer_widget.cpp File Reference
#include <layer_widget.h>
#include <macros.h>
#include <common.h>
#include <widgets/color_swatch.h>
#include <widgets/indicator_icon.h>
#include <algorithm>

Go to the source code of this file.

Functions

static void shrinkFont (wxWindow *aControl, int aPointSize)
 Function shrinkFont reduces the size of the wxFont associated with aControl. More...
 

Variables

static ROW_ICON_PROVIDER defaultRowIcons (false)
 
static ROW_ICON_PROVIDER alternativeRowIcons (true)
 

Function Documentation

static void shrinkFont ( wxWindow *  aControl,
int  aPointSize 
)
static

Function shrinkFont reduces the size of the wxFont associated with aControl.

Definition at line 59 of file layer_widget.cpp.

Referenced by LAYER_WIDGET::insertLayerRow(), and LAYER_WIDGET::insertRenderRow().

60 {
61  wxFont font = aControl->GetFont();
62  font.SetPointSize( aPointSize );
63  aControl->SetFont( font ); // need this?
64 }

Variable Documentation

ROW_ICON_PROVIDER alternativeRowIcons(true)
static
ROW_ICON_PROVIDER defaultRowIcons(false)
static