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

#include <pg_properties.h>

Inheritance diagram for PGPROPERTY_COLORENUM:

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
 

Detailed Description

Definition at line 210 of file pg_properties.h.

Constructor & Destructor Documentation

◆ PGPROPERTY_COLORENUM()

PGPROPERTY_COLORENUM::PGPROPERTY_COLORENUM ( wxPGChoices *  aChoices)
inline

Definition at line 213 of file pg_properties.h.

◆ ~PGPROPERTY_COLORENUM()

virtual PGPROPERTY_COLORENUM::~PGPROPERTY_COLORENUM ( )
virtualdefault

Member Function Documentation

◆ GetColor()

wxColour PGPROPERTY_COLORENUM::GetColor ( int  aValue)
inline

Definition at line 235 of file pg_properties.h.

References m_colorFunc.

Referenced by OnCustomPaint().

◆ OnCustomPaint()

void PGPROPERTY_COLORENUM::OnCustomPaint ( wxDC &  aDC,
const wxRect &  aRect,
wxPGPaintData &  aPaintData 
)
override

Definition at line 589 of file pg_properties.cpp.

References color, and GetColor().

◆ OnMeasureImage()

wxSize PGPROPERTY_COLORENUM::OnMeasureImage ( int  aItem = -1) const
override

Definition at line 582 of file pg_properties.cpp.

◆ SetColorFunc()

void PGPROPERTY_COLORENUM::SetColorFunc ( std::function< wxColour(int aValue)>  aFunc)
inline

Definition at line 230 of file pg_properties.h.

References m_colorFunc.

Member Data Documentation

◆ m_colorFunc

std::function<wxColour( int aValue )> PGPROPERTY_COLORENUM::m_colorFunc
protected

Definition at line 241 of file pg_properties.h.

Referenced by GetColor(), and SetColorFunc().


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