Plasma
Plasma::PaintUtils Namespace Reference
Namespace for all Image Effects specific to Plasma. More...
Functions | |
| void | centerPixmaps (QPixmap &from, QPixmap &to) |
| void | drawHalo (QPainter *painter, const QRectF &rect) |
| QPainterPath | roundedRectangle (const QRectF &rect, qreal radius) |
| void | shadowBlur (QImage &image, int radius, const QColor &color) |
| QPixmap | shadowText (QString text, QColor textColor, QColor shadowColor, QPoint offset, int radius) |
| QPixmap | shadowText (QString text, const QFont &font, QColor textColor=Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor), QColor shadowColor=Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor), QPoint offset=QPoint(1, 1), int radius=2) |
| QPixmap | transition (const QPixmap &from, const QPixmap &to, qreal amount) |
Detailed Description
Namespace for all Image Effects specific to Plasma.
Function Documentation
| void Plasma::PaintUtils::centerPixmaps | ( | QPixmap & | from, |
| QPixmap & | to | ||
| ) |
center two pixmap together in the biggest rectangle
- Since:
- 4.5
Definition at line 126 of file paintutils.cpp.
| void Plasma::PaintUtils::drawHalo | ( | QPainter * | painter, |
| const QRectF & | rect | ||
| ) |
Definition at line 106 of file paintutils.cpp.
| QPainterPath Plasma::PaintUtils::roundedRectangle | ( | const QRectF & | rect, |
| qreal | radius | ||
| ) |
Returns a nicely rounded rectanglular path for painting.
Definition at line 111 of file paintutils.cpp.
| void Plasma::PaintUtils::shadowBlur | ( | QImage & | image, |
| int | radius, | ||
| const QColor & | color | ||
| ) |
Creates a blurred shadow of the supplied image.
Definition at line 37 of file paintutils.cpp.
| QPixmap Plasma::PaintUtils::shadowText | ( | QString | text, |
| QColor | textColor, | ||
| QColor | shadowColor, | ||
| QPoint | offset, | ||
| int | radius | ||
| ) |
Definition at line 55 of file paintutils.cpp.
| QPixmap Plasma::PaintUtils::shadowText | ( | QString | text, |
| const QFont & | font, | ||
| QColor | textColor = Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor), |
||
| QColor | shadowColor = Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor), |
||
| QPoint | offset = QPoint(1, 1), |
||
| int | radius = 2 |
||
| ) |
Returns a pixmap containing text with blurred shadow.
Text and shadow colors default to Plasma::Theme colors.
Definition at line 60 of file paintutils.cpp.
| QPixmap Plasma::PaintUtils::transition | ( | const QPixmap & | from, |
| const QPixmap & | to, | ||
| qreal | amount | ||
| ) |
Blends a pixmap into another.
Definition at line 160 of file paintutils.cpp.
KDE 4.6 API Reference