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

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...
 

Function Documentation

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

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

Definition at line 55 of file layer_widget.cpp.

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

56 {
57  wxFont font = aControl->GetFont();
58  font.SetPointSize( aPointSize );
59  aControl->SetFont( font ); // need this?
60 }