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

#include <color4d_variant.h>

Inheritance diagram for COLOR4D_VARIANT_DATA:

Public Member Functions

 COLOR4D_VARIANT_DATA ()
 
 COLOR4D_VARIANT_DATA (const wxString &aColorStr)
 
 COLOR4D_VARIANT_DATA (const KIGFX::COLOR4D &aColor)
 
bool Eq (wxVariantData &aOther) const override
 
wxString GetType () const override
 
bool Read (wxString &aString) override
 
bool Write (wxString &aString) const override
 
bool GetAsAny (wxAny *aAny) const override
 
const KIGFX::COLOR4DColor ()
 
void SetColor (const KIGFX::COLOR4D &aColor)
 

Static Public Member Functions

static wxVariantData * VariantDataFactory (const wxAny &aAny)
 

Protected Attributes

KIGFX::COLOR4D m_color
 

Detailed Description

Definition at line 26 of file color4d_variant.h.

Constructor & Destructor Documentation

◆ COLOR4D_VARIANT_DATA() [1/3]

COLOR4D_VARIANT_DATA::COLOR4D_VARIANT_DATA ( )

Definition at line 22 of file color4d_variant.cpp.

Referenced by VariantDataFactory().

◆ COLOR4D_VARIANT_DATA() [2/3]

COLOR4D_VARIANT_DATA::COLOR4D_VARIANT_DATA ( const wxString &  aColorStr)

Definition at line 27 of file color4d_variant.cpp.

◆ COLOR4D_VARIANT_DATA() [3/3]

COLOR4D_VARIANT_DATA::COLOR4D_VARIANT_DATA ( const KIGFX::COLOR4D aColor)

Definition at line 33 of file color4d_variant.cpp.

Member Function Documentation

◆ Color()

const KIGFX::COLOR4D & COLOR4D_VARIANT_DATA::Color ( )
inline

Definition at line 47 of file color4d_variant.h.

References m_color.

Referenced by PG_COLOR_EDITOR::colorFromVariant(), and PROPERTY_BASE::set().

◆ Eq()

bool COLOR4D_VARIANT_DATA::Eq ( wxVariantData &  aOther) const
override

Definition at line 39 of file color4d_variant.cpp.

References m_color.

◆ GetAsAny()

bool COLOR4D_VARIANT_DATA::GetAsAny ( wxAny *  aAny) const
override

Definition at line 68 of file color4d_variant.cpp.

References m_color.

◆ GetType()

wxString COLOR4D_VARIANT_DATA::GetType ( ) const
inlineoverride

Definition at line 37 of file color4d_variant.h.

◆ Read()

bool COLOR4D_VARIANT_DATA::Read ( wxString &  aString)
override

Definition at line 54 of file color4d_variant.cpp.

References m_color.

◆ SetColor()

void COLOR4D_VARIANT_DATA::SetColor ( const KIGFX::COLOR4D aColor)
inline

Definition at line 49 of file color4d_variant.h.

References m_color.

◆ VariantDataFactory()

static wxAnyToCOLOR4D_VARIANTRegistrationImpl s_wxAnyToCOLOR4D_VARIANTRegistration & COLOR4D_VARIANT_DATA::VariantDataFactory ( const wxAny &  aAny)
static

Definition at line 75 of file color4d_variant.cpp.

References COLOR4D_VARIANT_DATA().

◆ Write()

bool COLOR4D_VARIANT_DATA::Write ( wxString &  aString) const
override

Definition at line 61 of file color4d_variant.cpp.

References m_color, and KIGFX::COLOR4D::ToCSSString().

Member Data Documentation

◆ m_color

KIGFX::COLOR4D COLOR4D_VARIANT_DATA::m_color
protected

Definition at line 52 of file color4d_variant.h.

Referenced by Color(), Eq(), GetAsAny(), Read(), SetColor(), and Write().


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