open_iA 2024.9
Loading...
Searching...
No Matches
iAVectorColorTheme Class Reference

Simple implementation of a color theme, storing the colors in a vector. More...

Inheritance diagram for iAVectorColorTheme:
[legend]
Collaboration diagram for iAVectorColorTheme:
[legend]

Public Member Functions

 iAVectorColorTheme (QString const &name)
 
void addColor (QColor const &)
 add a color to the theme (typically only necessary for theme creators)
 
QColor const & color (size_t idx) const override
 returns the color with the given index in this theme
 
size_t size () const override
 returns the number of colors in this theme
 
- Public Member Functions inherited from iAColorTheme
 iAColorTheme (QString const &name)
 
virtual ~iAColorTheme ()
 
QString const & name () const
 get the name of the color theme
 

Detailed Description

Simple implementation of a color theme, storing the colors in a vector.

Constructor & Destructor Documentation

◆ iAVectorColorTheme()

iAVectorColorTheme::iAVectorColorTheme ( QString const & name)

Member Function Documentation

◆ addColor()

void iAVectorColorTheme::addColor ( QColor const & color)

add a color to the theme (typically only necessary for theme creators)

◆ color()

QColor const & iAVectorColorTheme::color ( size_t idx) const
overridevirtual

returns the color with the given index in this theme

Implements iAColorTheme.

◆ size()

size_t iAVectorColorTheme::size ( ) const
overridevirtual

returns the number of colors in this theme

Implements iAColorTheme.


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