KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PCB_LAYER_SELECTOR Class Reference
Inheritance diagram for PCB_LAYER_SELECTOR:
LAYER_SELECTOR PCB_ONE_LAYER_SELECTOR SELECT_COPPER_LAYERS_PAIR_DIALOG

Public Member Functions

 PCB_LAYER_SELECTOR (PCB_BASE_FRAME *aFrame)
 
bool SetLayersHotkeys (bool value)
 

Static Public Member Functions

static void DrawColorSwatch (wxBitmap &aLayerbmp, const COLOR4D &aBackground, const COLOR4D &aColor)
 

Protected Member Functions

bool isLayerEnabled (int aLayer) const override
 
COLOR4D getLayerColor (int aLayer) const override
 
wxString getLayerName (int aLayer) const override
 

Protected Attributes

PCB_BASE_FRAMEm_frame
 
bool m_layerhotkeys
 

Detailed Description

Definition at line 45 of file sel_layer.cpp.

Constructor & Destructor Documentation

◆ PCB_LAYER_SELECTOR()

PCB_LAYER_SELECTOR::PCB_LAYER_SELECTOR ( PCB_BASE_FRAME aFrame)
inline

Definition at line 48 of file sel_layer.cpp.

References m_frame.

Member Function Documentation

◆ DrawColorSwatch()

◆ getLayerColor()

COLOR4D PCB_LAYER_SELECTOR::getLayerColor ( int  aLayer) const
inlineoverrideprotectedvirtual

◆ getLayerName()

wxString PCB_LAYER_SELECTOR::getLayerName ( int  aLayer) const
inlineoverrideprotectedvirtual

◆ isLayerEnabled()

bool PCB_LAYER_SELECTOR::isLayerEnabled ( int  aLayer) const
inlineoverrideprotectedvirtual

Implements LAYER_SELECTOR.

Definition at line 58 of file sel_layer.cpp.

References PCB_BASE_FRAME::GetBoard(), BOARD::IsLayerEnabled(), and m_frame.

◆ SetLayersHotkeys()

Member Data Documentation

◆ m_frame

PCB_BASE_FRAME* PCB_LAYER_SELECTOR::m_frame
protected
Returns
true if the layer id is enabled (i.e. is it should be displayed).

Definition at line 55 of file sel_layer.cpp.

Referenced by getLayerColor(), getLayerName(), isLayerEnabled(), and PCB_LAYER_SELECTOR().

◆ m_layerhotkeys

bool LAYER_SELECTOR::m_layerhotkeys
protectedinherited

The documentation for this class was generated from the following file: