aboutsummaryrefslogtreecommitdiff
path: root/libraries/rainbow/include/rainbow.h
diff options
context:
space:
mode:
authorPhilipp David <pd@3b.pm>2022-03-18 10:28:35 +0100
committerPhilipp David <pd@3b.pm>2022-03-21 12:47:42 +0100
commite8373bbf65c62096588a19c09959f1212ae14403 (patch)
treeb8f283fbfff1d06d55024d72407f90ab25416f47 /libraries/rainbow/include/rainbow.h
parent26acc836d9c9a0be5363c306f825f33602298c5d (diff)
downloadPrismLauncher-e8373bbf65c62096588a19c09959f1212ae14403.tar.gz
PrismLauncher-e8373bbf65c62096588a19c09959f1212ae14403.tar.bz2
PrismLauncher-e8373bbf65c62096588a19c09959f1212ae14403.zip
Build with static rainbow
Diffstat (limited to 'libraries/rainbow/include/rainbow.h')
-rw-r--r--libraries/rainbow/include/rainbow.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/libraries/rainbow/include/rainbow.h b/libraries/rainbow/include/rainbow.h
index 67c46300..57be87f1 100644
--- a/libraries/rainbow/include/rainbow.h
+++ b/libraries/rainbow/include/rainbow.h
@@ -23,8 +23,6 @@
#pragma once
-#include "rainbow_config.h"
-
#include <QPainter>
class QColor;
@@ -43,13 +41,13 @@ namespace Rainbow
*
* @see http://en.wikipedia.org/wiki/Luma_(video)
*/
-RAINBOW_EXPORT qreal luma(const QColor &);
+qreal luma(const QColor &);
/**
* Calculate hue, chroma and luma of a color in one call.
* @since 5.0
*/
-RAINBOW_EXPORT void getHcy(const QColor &, qreal *hue, qreal *chroma, qreal *luma,
+void getHcy(const QColor &, qreal *hue, qreal *chroma, qreal *luma,
qreal *alpha = 0);
/**
@@ -64,7 +62,7 @@ RAINBOW_EXPORT void getHcy(const QColor &, qreal *hue, qreal *chroma, qreal *lum
*
* @see Rainbow::luma
*/
-RAINBOW_EXPORT qreal contrastRatio(const QColor &, const QColor &);
+qreal contrastRatio(const QColor &, const QColor &);
/**
* Adjust the luma of a color by changing its distance from white.
@@ -81,7 +79,7 @@ RAINBOW_EXPORT qreal contrastRatio(const QColor &, const QColor &);
* component of the color; 1.0 means no change, 0.0 maximizes chroma
* @see Rainbow::shade
*/
-RAINBOW_EXPORT QColor
+QColor
lighten(const QColor &, qreal amount = 0.5, qreal chromaInverseGain = 1.0);
/**
@@ -99,7 +97,7 @@ lighten(const QColor &, qreal amount = 0.5, qreal chromaInverseGain = 1.0);
* component of the color; 1.0 means no change, 0.0 minimizes chroma
* @see Rainbow::shade
*/
-RAINBOW_EXPORT QColor darken(const QColor &, qreal amount = 0.5, qreal chromaGain = 1.0);
+QColor darken(const QColor &, qreal amount = 0.5, qreal chromaGain = 1.0);
/**
* Adjust the luma and chroma components of a color. The amount is added
@@ -113,7 +111,7 @@ RAINBOW_EXPORT QColor darken(const QColor &, qreal amount = 0.5, qreal chromaGai
* 1.0 maximizes chroma
* @see Rainbow::luma
*/
-RAINBOW_EXPORT QColor shade(const QColor &, qreal lumaAmount, qreal chromaAmount = 0.0);
+QColor shade(const QColor &, qreal lumaAmount, qreal chromaAmount = 0.0);
/**
* Create a new color by tinting one color with another. This function is
@@ -127,7 +125,7 @@ RAINBOW_EXPORT QColor shade(const QColor &, qreal lumaAmount, qreal chromaAmount
* @param amount how strongly to tint the base; 0.0 gives @p base,
* 1.0 gives @p color
*/
-RAINBOW_EXPORT QColor tint(const QColor &base, const QColor &color, qreal amount = 0.3);
+QColor tint(const QColor &base, const QColor &color, qreal amount = 0.3);
/**
* Blend two colors into a new color by linear combination.
@@ -140,7 +138,7 @@ RAINBOW_EXPORT QColor tint(const QColor &base, const QColor &color, qreal amount
* @p bias >= 1 gives @p c2. @p bias == 0.5 gives a 50% blend of @p c1
* and @p c2.
*/
-RAINBOW_EXPORT QColor mix(const QColor &c1, const QColor &c2, qreal bias = 0.5);
+QColor mix(const QColor &c1, const QColor &c2, qreal bias = 0.5);
/**
* Blend two colors into a new color by painting the second color over the
@@ -154,7 +152,7 @@ RAINBOW_EXPORT QColor mix(const QColor &c1, const QColor &c2, qreal bias = 0.5);
* @param paint the color to be overlayed onto the base color.
* @param comp the CompositionMode used to do the blending.
*/
-RAINBOW_EXPORT QColor
+QColor
overlayColors(const QColor &base, const QColor &paint,
QPainter::CompositionMode comp = QPainter::CompositionMode_SourceOver);
}