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

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 60 of file layer_widget.cpp.

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

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

Variable Documentation

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