6 #ifndef SWIFT_MISC_RGBCOLOR_H
7 #define SWIFT_MISC_RGBCOLOR_H
32 IndexRed = swift::misc::CPropertyIndexRef::GlobalIndexCRgbColor,
42 CRgbColor(
const QString &color,
bool isName =
false);
51 QColor toQColor()
const;
54 bool setQColor(
const QColor &color);
60 double normalizedRed()
const;
63 QString redHex(
int digits = 2)
const;
69 double normalizedGreen()
const;
72 QString greenHex(
int digits = 2)
const;
78 double normalizedBlue()
const;
81 QString blueHex(
int digits = 2)
const;
84 QString hex(
bool withHash =
false)
const;
93 void setByString(
const QString &color,
bool isName =
false);
100 double colorDistance(
const CRgbColor &color)
const;
109 QPixmap toPixmap()
const;
112 QString convertToQString(
bool i18n =
false)
const;
124 int compare(
const CRgbColor &color)
const;
132 double colorRange()
const;
134 static QString
intToHex(
int h,
int digits = 2);
IconIndex
Index for each icon, allows to send them via DBus, efficiently store them, etc.
Non-owning reference to a CPropertyIndex with a subset of its features.
CRgbColor()=default
Constructor.
Mix of the most commonly used mixin classes.
ColumnIndex
Base class enums.
Free functions in swift::misc.
SWIFT_MISC_EXPORT QString intToHex(int value, int digits=2)
Int to hex value.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
#define SWIFT_DECLARE_VALUEOBJECT_MIXINS(Namespace, Class)
Explicit template declaration of mixins for a CValueObject subclass to be placed near the top of the ...