|
KiCad PCB EDA Suite
|
A wxEnumProperty that displays a color next to the enum value. More...
#include <pg_properties.h>
Public Member Functions | |
| PGPROPERTY_COLORENUM (wxPGChoices *aChoices) | |
| virtual | ~PGPROPERTY_COLORENUM ()=default |
| wxSize | OnMeasureImage (int aItem=-1) const override |
| void | OnCustomPaint (wxDC &aDC, const wxRect &aRect, wxPGPaintData &aPaintData) override |
| void | SetColorFunc (std::function< wxColour(int aValue)> aFunc) |
| wxColour | GetColor (int aValue) |
Protected Attributes | |
| std::function< wxColour(int aValue)> | m_colorFunc |
A wxEnumProperty that displays a color next to the enum value.
Definition at line 212 of file pg_properties.h.
|
inline |
Definition at line 215 of file pg_properties.h.
References m_colorFunc.
|
virtualdefault |
|
inline |
Definition at line 239 of file pg_properties.h.
References m_colorFunc.
Referenced by OnCustomPaint().
|
override |
Definition at line 650 of file pg_properties.cpp.
References GetColor(), and index.
|
override |
Definition at line 639 of file pg_properties.cpp.
|
inline |
Definition at line 234 of file pg_properties.h.
References m_colorFunc.
|
protected |
Definition at line 245 of file pg_properties.h.
Referenced by GetColor(), PGPROPERTY_COLORENUM(), and SetColorFunc().