5#include "genericcolor.h"
18 : first(
list.value(0, 0))
19 , second(
list.value(1, 0))
20 , third(
list.value(2, 0))
21 , fourth(
list.value(3, 0))
28Trio GenericColor::toTrio()
const
30 return createMatrix<1, 3, double>(first, second, third);
46cmsCIEXYZ GenericColor::reinterpretAsXyzToCmsciexyz()
const
48 return cmsCIEXYZ{first, second, third};
56cmsCIELab GenericColor::reinterpretAsLabToCmscielab()
const
58 return cmsCIELab{first, second, third};
66cmsCIELCh GenericColor::reinterpretAsLchToCmscielch()
const
68 return cmsCIELCh{first, second, third};
76bool GenericColor::operator==(
const GenericColor &other)
const
79 (first == other.first)
80 && (second == other.second)
81 && (third == other.third)
82 && (fourth == other.fourth)
91bool GenericColor::operator!=(
const GenericColor &other)
const
93 return !(*
this == other);
107 <<
"GenericColor(" <<
109 << value.second <<
", "
110 << value.third <<
", "
111 << value.fourth <<
")";
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
The namespace of this library.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:47 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.