5 #ifndef QXMPPCOLORGENERATION_H 6 #define QXMPPCOLORGENERATION_H 8 #include "QXmppGlobal.h" 17 struct QXMPP_EXPORT Rgb {
23 QXMPP_EXPORT
static Rgb
generateRgb(QStringView str);
25 #if defined(QT_GUI_LIB) || defined(QXMPP_DOC) 29 return QColor(rgb.red, rgb.green, rgb.blue);
35 double generateColorAngle(QStringView str);
38 #endif // QXMPPCOLORGENERATION_H static QColor generateColor(QStringView str)
Definition: QXmppColorGeneration.h:26
static QXMPP_EXPORT Rgb generateRgb(QStringView str)
Definition: QXmppColorGeneration.cpp:26
Generates colors from strings as defined in XEP-0392: Consistent Color Generation.
Definition: QXmppColorGeneration.h:14
Definition: Algorithms.h:12