KiCad PCB EDA Suite
layer_widget.cpp File Reference
#include "layer_widget.h"
#include <bitmaps.h>
#include <macros.h>
#include <menus_helpers.h>
#include <widgets/indicator_icon.h>
#include <widgets/wx_ellipsized_static_text.h>
#include <wx/checkbox.h>
#include <algorithm>

Go to the source code of this file.

Functions

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

Function Documentation

◆ shrinkFont()

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

Reduce the size of the wxFont associated with aControl.

Definition at line 54 of file layer_widget.cpp.

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

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