Swatch

Search for usage in LXR

Swatch Class Reference

#include <Swatch.h>

Public Member Functions

 Swatch (const Swatch &rhs)
 
ManagedColorcolor () const
 
QString id () const
 
bool isValid () const
 
QString name () const
 
Swatchoperator= (const Swatch &rhs)
 
void setColor (ManagedColor *color)
 
void setId (const QString &id)
 
void setName (const QString &name)
 
void setSpotColor (bool spotColor)
 
bool spotColor () const
 

Detailed Description

The Swatch class is a thin wrapper around the KisSwatch class.

A Swatch is a single color that is part of a palette, that has a name and an id. A Swatch color can be a spot color.

Definition at line 21 of file Swatch.h.

Constructor & Destructor Documentation

◆ Swatch() [1/2]

Swatch::Swatch ( )

Definition at line 20 of file Swatch.cpp.

◆ ~Swatch()

Swatch::~Swatch ( )
virtual

Definition at line 26 of file Swatch.cpp.

◆ Swatch() [2/2]

Swatch::Swatch ( const Swatch & rhs)

Definition at line 31 of file Swatch.cpp.

Member Function Documentation

◆ color()

ManagedColor * Swatch::color ( ) const

Definition at line 63 of file Swatch.cpp.

◆ id()

QString Swatch::id ( ) const

Definition at line 54 of file Swatch.cpp.

◆ isValid()

bool Swatch::isValid ( ) const

Definition at line 82 of file Swatch.cpp.

◆ name()

QString Swatch::name ( ) const

Definition at line 44 of file Swatch.cpp.

◆ operator=()

Swatch & Swatch::operator= ( const Swatch & rhs)

Definition at line 37 of file Swatch.cpp.

◆ setColor()

void Swatch::setColor ( ManagedColor * color)

Definition at line 68 of file Swatch.cpp.

◆ setId()

void Swatch::setId ( const QString & id)

Definition at line 58 of file Swatch.cpp.

◆ setName()

void Swatch::setName ( const QString & name)

Definition at line 49 of file Swatch.cpp.

◆ setSpotColor()

void Swatch::setSpotColor ( bool spotColor)

Definition at line 77 of file Swatch.cpp.

◆ spotColor()

bool Swatch::spotColor ( ) const

Definition at line 73 of file Swatch.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:53 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.