KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LAYER_BOX_SELECTOR Class Referenceabstract

#include <layer_box_selector.h>

Inheritance diagram for LAYER_BOX_SELECTOR:
LAYER_SELECTOR GBR_LAYER_BOX_SELECTOR PCB_LAYER_BOX_SELECTOR

Public Member Functions

 LAYER_BOX_SELECTOR (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=nullptr)
 
 ~LAYER_BOX_SELECTOR () override
 
int GetLayerSelection () const
 
int SetLayerSelection (int layer)
 
virtual void Resync ()=0
 
void ResyncBitmapOnly ()
 
bool SetLayersHotkeys (bool value)
 

Static Public Member Functions

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

Protected Member Functions

virtual COLOR4D getLayerColor (int aLayer) const =0
 
virtual wxString getLayerName (int aLayer) const =0
 
virtual bool isLayerEnabled (int aLayer) const =0
 

Protected Attributes

bool m_layerhotkeys
 

Detailed Description

Definition at line 67 of file layer_box_selector.h.

Constructor & Destructor Documentation

◆ LAYER_BOX_SELECTOR()

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

Definition at line 78 of file layer_box_selector.cpp.

References ResyncBitmapOnly().

◆ ~LAYER_BOX_SELECTOR()

LAYER_BOX_SELECTOR::~LAYER_BOX_SELECTOR ( )
override

Definition at line 93 of file layer_box_selector.cpp.

Member Function Documentation

◆ DrawColorSwatch()

◆ getLayerColor()

virtual COLOR4D LAYER_SELECTOR::getLayerColor ( int  aLayer) const
protectedpure virtualinherited

◆ getLayerName()

virtual wxString LAYER_SELECTOR::getLayerName ( int  aLayer) const
protectedpure virtualinherited

◆ GetLayerSelection()

◆ isLayerEnabled()

virtual bool LAYER_SELECTOR::isLayerEnabled ( int  aLayer) const
protectedpure virtualinherited

◆ Resync()

virtual void LAYER_BOX_SELECTOR::Resync ( )
pure virtual

◆ 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: