KiCad PCB EDA Suite
CUSTOM_COLOR_ITEM Struct Reference

a class to handle a custom color (predefined color) for the color picker dialog More...

#include <dialog_color_picker.h>

Public Member Functions

 CUSTOM_COLOR_ITEM (double red, double green, double blue, const wxString &aName)
 
 CUSTOM_COLOR_ITEM (const KIGFX::COLOR4D &aColor, const wxString &aName)
 

Public Attributes

KIGFX::COLOR4D m_Color
 
wxString m_ColorName
 

Detailed Description

a class to handle a custom color (predefined color) for the color picker dialog

Definition at line 34 of file dialog_color_picker.h.

Constructor & Destructor Documentation

CUSTOM_COLOR_ITEM::CUSTOM_COLOR_ITEM ( double  red,
double  green,
double  blue,
const wxString &  aName 
)
inline

Definition at line 39 of file dialog_color_picker.h.

References KIGFX::COLOR4D::b, KIGFX::COLOR4D::g, and KIGFX::COLOR4D::r.

40  {
41  m_Color.r = red;
42  m_Color.g = green;
43  m_Color.b = blue;
44  m_ColorName = aName;
45  }
double g
Green component.
Definition: color4d.h:288
double b
Blue component.
Definition: color4d.h:289
KIGFX::COLOR4D m_Color
double r
Red component.
Definition: color4d.h:287
CUSTOM_COLOR_ITEM::CUSTOM_COLOR_ITEM ( const KIGFX::COLOR4D aColor,
const wxString &  aName 
)
inline

Definition at line 47 of file dialog_color_picker.h.

48  : m_Color( aColor ), m_ColorName( aName)
49  {}
KIGFX::COLOR4D m_Color

Member Data Documentation

KIGFX::COLOR4D CUSTOM_COLOR_ITEM::m_Color

Definition at line 36 of file dialog_color_picker.h.

Referenced by DIALOG_COLOR_PICKER::initDefinedColors().

wxString CUSTOM_COLOR_ITEM::m_ColorName

Definition at line 37 of file dialog_color_picker.h.

Referenced by DIALOG_COLOR_PICKER::initDefinedColors().


The documentation for this struct was generated from the following file: