Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::Colors::Space::Components Class Reference

#include <components.h>

Public Member Functions

 Components ()=default
 
 Components (Type type, Type wheel, Traits traits, std::vector< Component > components)
 
const std::vector< Component > & getAll () const
 
std::vector< Component >::const_iterator begin () const
 
std::vector< Component >::const_iterator end () const
 
Component const & operator[] (const unsigned int index) const
 
Type getType () const
 
unsigned size () const
 
void add (std::string id, std::string name, std::string tip, Unit unit=Unit::EightBit)
 
void setType (Type type, Type color_wheel=Type::NONE)
 
Type get_wheel_type () const
 
Traits traits () const
 

Static Public Member Functions

static Components const & get (Type type, bool alpha=false)
 

Private Attributes

Type _type = Type::NONE
 
std::vector< Component_components
 
Type _wheel_type = Type::NONE
 
Traits _traits = Traits::None
 

Detailed Description

Definition at line 66 of file components.h.

Constructor & Destructor Documentation

◆ Components() [1/2]

Inkscape::Colors::Space::Components::Components ( )
default

◆ Components() [2/2]

Inkscape::Colors::Space::Components::Components ( Type  type,
Type  wheel,
Traits  traits,
std::vector< Component components 
)
inline

Definition at line 70 of file components.h.

Member Function Documentation

◆ add()

void Inkscape::Colors::Space::Components::add ( std::string  id,
std::string  name,
std::string  tip,
Unit  unit = Unit::EightBit 
)

Definition at line 220 of file components.cpp.

References _components, _type, and name.

◆ begin()

std::vector< Component >::const_iterator Inkscape::Colors::Space::Components::begin ( ) const
inline

Definition at line 77 of file components.h.

References _components.

◆ end()

std::vector< Component >::const_iterator Inkscape::Colors::Space::Components::end ( ) const
inline

Definition at line 78 of file components.h.

References _components.

◆ get()

Components const & Inkscape::Colors::Space::Components::get ( Type  type,
bool  alpha = false 
)
static

◆ get_wheel_type()

Type Inkscape::Colors::Space::Components::get_wheel_type ( ) const

Definition at line 260 of file components.cpp.

References _wheel_type.

◆ getAll()

const std::vector< Component > & Inkscape::Colors::Space::Components::getAll ( ) const
inline

Definition at line 75 of file components.h.

References _components.

◆ getType()

Type Inkscape::Colors::Space::Components::getType ( ) const
inline

Definition at line 81 of file components.h.

References _type.

◆ operator[]()

Component const & Inkscape::Colors::Space::Components::operator[] ( const unsigned int  index) const
inline

Definition at line 79 of file components.h.

References _components, and index.

◆ setType()

void Inkscape::Colors::Space::Components::setType ( Type  type,
Type  color_wheel = Type::NONE 
)
inline

Definition at line 85 of file components.h.

References _type, and _wheel_type.

◆ size()

unsigned Inkscape::Colors::Space::Components::size ( ) const
inline

Definition at line 82 of file components.h.

References _components.

◆ traits()

Traits Inkscape::Colors::Space::Components::traits ( ) const
inline

Definition at line 89 of file components.h.

References _traits.

Member Data Documentation

◆ _components

std::vector<Component> Inkscape::Colors::Space::Components::_components
private

Definition at line 93 of file components.h.

Referenced by add(), begin(), end(), getAll(), operator[](), and size().

◆ _traits

Traits Inkscape::Colors::Space::Components::_traits = Traits::None
private

Definition at line 95 of file components.h.

Referenced by traits().

◆ _type

Type Inkscape::Colors::Space::Components::_type = Type::NONE
private

Definition at line 92 of file components.h.

Referenced by add(), getType(), and setType().

◆ _wheel_type

Type Inkscape::Colors::Space::Components::_wheel_type = Type::NONE
private

Definition at line 94 of file components.h.

Referenced by get_wheel_type(), and setType().


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