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

#include <pg_properties.h>

Inheritance diagram for PGPROPERTY_COLOR4D:

Public Member Functions

 PGPROPERTY_COLOR4D (const wxString &aLabel=wxPG_LABEL, const wxString &aName=wxPG_LABEL, KIGFX::COLOR4D aValue=KIGFX::COLOR4D::UNSPECIFIED, KIGFX::COLOR4D aBackground=KIGFX::COLOR4D::UNSPECIFIED)
 
virtual ~PGPROPERTY_COLOR4D ()=default
 
wxString ValueToString (wxVariant &aValue, int aFlags=0) const override
 
bool StringToValue (wxVariant &aVariant, const wxString &aText, int aFlags=0) const override
 
void SetBackgroundColor (const KIGFX::COLOR4D &aColor)
 
const KIGFX::COLOR4DGetBackgroundColor () const
 

Private Attributes

KIGFX::COLOR4D m_backgroundColor
 Used for rendering colors with opacity.
 

Detailed Description

Definition at line 309 of file pg_properties.h.

Constructor & Destructor Documentation

◆ PGPROPERTY_COLOR4D()

PGPROPERTY_COLOR4D::PGPROPERTY_COLOR4D ( const wxString &  aLabel = wxPG_LABEL,
const wxString &  aName = wxPG_LABEL,
KIGFX::COLOR4D  aValue = KIGFX::COLOR4D::UNSPECIFIED,
KIGFX::COLOR4D  aBackground = KIGFX::COLOR4D::UNSPECIFIED 
)

Definition at line 656 of file pg_properties.cpp.

References PG_COLOR_EDITOR::EDITOR_NAME.

◆ ~PGPROPERTY_COLOR4D()

virtual PGPROPERTY_COLOR4D::~PGPROPERTY_COLOR4D ( )
virtualdefault

Member Function Documentation

◆ GetBackgroundColor()

const KIGFX::COLOR4D & PGPROPERTY_COLOR4D::GetBackgroundColor ( ) const
inline

Definition at line 332 of file pg_properties.h.

References m_backgroundColor.

◆ SetBackgroundColor()

void PGPROPERTY_COLOR4D::SetBackgroundColor ( const KIGFX::COLOR4D aColor)
inline

Definition at line 331 of file pg_properties.h.

References m_backgroundColor.

◆ StringToValue()

bool PGPROPERTY_COLOR4D::StringToValue ( wxVariant &  aVariant,
const wxString &  aText,
int  aFlags = 0 
) const
override

Definition at line 674 of file pg_properties.cpp.

◆ ValueToString()

wxString PGPROPERTY_COLOR4D::ValueToString ( wxVariant &  aValue,
int  aFlags = 0 
) const
override

Definition at line 687 of file pg_properties.cpp.

Member Data Documentation

◆ m_backgroundColor

KIGFX::COLOR4D PGPROPERTY_COLOR4D::m_backgroundColor
private

Used for rendering colors with opacity.

Definition at line 336 of file pg_properties.h.

Referenced by GetBackgroundColor(), and SetBackgroundColor().


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