Plasma
Plasma::PaintUtils Namespace Reference
Namespace for all Image Effects specific to Plasma. More...
Functions | |
| QPainterPath | roundedRectangle (const QRectF &rect, qreal radius) |
| void | shadowBlur (QImage &image, int radius, const QColor &color) |
| 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 | shadowText (QString text, QColor textColor, QColor shadowColor, QPoint offset, int radius) |
| QPixmap | transition (const QPixmap &from, const QPixmap &to, qreal amount) |
Detailed Description
Namespace for all Image Effects specific to Plasma.
Function Documentation
| QPainterPath Plasma::PaintUtils::roundedRectangle | ( | const QRectF & | rect, | |
| qreal | radius | |||
| ) |
Returns a nicely rounded rectanglular path for painting.
| void Plasma::PaintUtils::shadowBlur | ( | QImage & | image, | |
| int | radius, | |||
| const QColor & | color | |||
| ) |
Creates a blurred shadow of the supplied image.
| 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.
| QPixmap Plasma::PaintUtils::shadowText | ( | QString | text, | |
| QColor | textColor, | |||
| QColor | shadowColor, | |||
| QPoint | offset, | |||
| int | radius | |||
| ) |
| QPixmap Plasma::PaintUtils::transition | ( | const QPixmap & | from, | |
| const QPixmap & | to, | |||
| qreal | amount | |||
| ) |
Blends a pixmap into another.
KDE 4.3 API Reference