|
Krita Source Code Documentation
|
Classes | |
| struct | StopHandleColor |
Enumerations | |
| enum | ColorType { None , Foreground , Background , Custom } |
Functions | |
| KoGradientSegmentEndpointType | colorTypeToSegmentEndPointType (KisGradientWidgetsUtils::ColorType type, bool transparent) |
| void | paintGradientBox (QPainter &painter, const KoAbstractGradientSP gradient, const QRectF &rect) |
| void | paintMidPointHandle (QPainter &painter, const QPointF &position, qreal size, bool isSelected, bool isHovered, bool hasFocus, const QColor &borderColor, const QColor &fillColor, const QColor &highlightColor) |
| void | paintStopHandle (QPainter &painter, const QPointF &position, const QSizeF &size, bool isSelected, bool isHovered, bool hasFocus, const QColor &highlightColor, const StopHandleColor &color1, const StopHandleColor &color2) |
| KisGradientWidgetsUtils::ColorType | segmentEndPointTypeToColorType (KoGradientSegmentEndpointType type) |
| Enumerator | |
|---|---|
| None | |
| Foreground | |
| Background | |
| Custom | |
Definition at line 23 of file KisGradientWidgetsUtils.h.
| KoGradientSegmentEndpointType KRITAUI_EXPORT KisGradientWidgetsUtils::colorTypeToSegmentEndPointType | ( | KisGradientWidgetsUtils::ColorType | type, |
| bool | transparent ) |
Definition at line 180 of file KisGradientWidgetsUtils.cpp.
References Background, BACKGROUND_ENDPOINT, BACKGROUND_TRANSPARENT_ENDPOINT, COLOR_ENDPOINT, Foreground, FOREGROUND_ENDPOINT, and FOREGROUND_TRANSPARENT_ENDPOINT.
| void KRITAUI_EXPORT KisGradientWidgetsUtils::paintGradientBox | ( | QPainter & | painter, |
| const KoAbstractGradientSP | gradient, | ||
| const QRectF & | rect ) |
Definition at line 16 of file KisGradientWidgetsUtils.cpp.
References KoCheckerBoardPainter::paint().
| void KRITAUI_EXPORT KisGradientWidgetsUtils::paintMidPointHandle | ( | QPainter & | painter, |
| const QPointF & | position, | ||
| qreal | size, | ||
| bool | isSelected, | ||
| bool | isHovered, | ||
| bool | hasFocus, | ||
| const QColor & | borderColor, | ||
| const QColor & | fillColor, | ||
| const QColor & | highlightColor ) |
Definition at line 127 of file KisGradientWidgetsUtils.cpp.
| void KRITAUI_EXPORT KisGradientWidgetsUtils::paintStopHandle | ( | QPainter & | painter, |
| const QPointF & | position, | ||
| const QSizeF & | size, | ||
| bool | isSelected, | ||
| bool | isHovered, | ||
| bool | hasFocus, | ||
| const QColor & | highlightColor, | ||
| const StopHandleColor & | color1, | ||
| const StopHandleColor & | color2 ) |
Definition at line 32 of file KisGradientWidgetsUtils.cpp.
References Background, KisGradientWidgetsUtils::StopHandleColor::color, Foreground, None, and KisGradientWidgetsUtils::StopHandleColor::type.
| KisGradientWidgetsUtils::ColorType KRITAUI_EXPORT KisGradientWidgetsUtils::segmentEndPointTypeToColorType | ( | KoGradientSegmentEndpointType | type | ) |
Definition at line 170 of file KisGradientWidgetsUtils.cpp.
References Background, BACKGROUND_ENDPOINT, BACKGROUND_TRANSPARENT_ENDPOINT, Custom, Foreground, FOREGROUND_ENDPOINT, and FOREGROUND_TRANSPARENT_ENDPOINT.