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);
34namespace QXmpp::Private {
35double generateColorAngle(QStringView str);
Generates colors from strings as defined in XEP-0392: Consistent Color Generation.
Definition QXmppColorGeneration.h:15
static QXMPP_EXPORT Rgb generateRgb(QStringView str)
Definition QXmppColorGeneration.cpp:26
static QColor generateColor(QStringView str)
Definition QXmppColorGeneration.h:26