KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GBR_LAYER_BOX_SELECTOR Class Reference

#include <gbr_layer_box_selector.h>

Inheritance diagram for GBR_LAYER_BOX_SELECTOR:
LAYER_BOX_SELECTOR LAYER_SELECTOR

Public Member Functions

 GBR_LAYER_BOX_SELECTOR (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=nullptr)
 
void Resync () override
 
COLOR4D getLayerColor (int aLayer) const override
 
bool isLayerEnabled (int aLayer) const override
 
wxString getLayerName (int aLayer) const override
 
int GetLayerSelection () const
 
int SetLayerSelection (int layer)
 
void ResyncBitmapOnly ()
 
bool SetLayersHotkeys (bool value)
 

Static Public Member Functions

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

Protected Attributes

bool m_layerhotkeys
 

Detailed Description

Definition at line 32 of file gbr_layer_box_selector.h.

Constructor & Destructor Documentation

◆ GBR_LAYER_BOX_SELECTOR()

GBR_LAYER_BOX_SELECTOR::GBR_LAYER_BOX_SELECTOR ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
int  n = 0,
const wxString  choices[] = nullptr 
)
inline

Definition at line 35 of file gbr_layer_box_selector.h.

References LAYER_SELECTOR::m_layerhotkeys.

Member Function Documentation

◆ DrawColorSwatch()

◆ getLayerColor()

COLOR4D GBR_LAYER_BOX_SELECTOR::getLayerColor ( int  aLayer) const
overridevirtual

Implements LAYER_SELECTOR.

Definition at line 89 of file gbr_layer_box_selector.cpp.

References GERBER_DRAW_LAYER, and GERBVIEW_FRAME::GetLayerColor().

Referenced by Resync().

◆ getLayerName()

wxString GBR_LAYER_BOX_SELECTOR::getLayerName ( int  aLayer) const
overridevirtual

◆ GetLayerSelection()

◆ isLayerEnabled()

bool GBR_LAYER_BOX_SELECTOR::isLayerEnabled ( int  aLayer) const
inlineoverridevirtual

Implements LAYER_SELECTOR.

Definition at line 51 of file gbr_layer_box_selector.h.

Referenced by Resync().

◆ Resync()

◆ ResyncBitmapOnly()

◆ SetLayerSelection()

◆ SetLayersHotkeys()

Member Data Documentation

◆ m_layerhotkeys

bool LAYER_SELECTOR::m_layerhotkeys
protectedinherited

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