Changeset View
Changeset View
Standalone View
Standalone View
lib/paintutils.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | GWENVIEWLIB_EXPORT QColor adjustedHsv(const QColor& color, int deltaH, int deltaS, int deltaV); | 57 | GWENVIEWLIB_EXPORT QColor adjustedHsv(const QColor& color, int deltaH, int deltaS, int deltaV); | ||
58 | 58 | | |||
59 | /** | 59 | /** | ||
60 | * Returns a modified version of @p color, where alpha has been set to @p | 60 | * Returns a modified version of @p color, where alpha has been set to @p | ||
61 | * alphaF. | 61 | * alphaF. | ||
62 | */ | 62 | */ | ||
63 | GWENVIEWLIB_EXPORT QColor alphaAdjustedF(const QColor& color, qreal alphaF); | 63 | GWENVIEWLIB_EXPORT QColor alphaAdjustedF(const QColor& color, qreal alphaF); | ||
64 | 64 | | |||
65 | /** | | |||
66 | * Returns the smallest QRect which contains @p rectF | | |||
67 | */ | | |||
68 | GWENVIEWLIB_EXPORT QRect containingRect(const QRectF& rectF); | | |||
69 | | ||||
70 | } // namespace | 65 | } // namespace | ||
71 | 66 | | |||
72 | } // namespace | 67 | } // namespace | ||
73 | 68 | | |||
74 | #endif /* PAINTUTILS_H */ | 69 | #endif /* PAINTUTILS_H */ |