libplasma
Plasma::PaintUtils Namespace Reference
Detailed Description
Namespace for all Image Effects specific to Plasma.
Functions | |
QPainterPath | roundedRectangle (const QRectF &rect, qreal radius) |
void | shadowBlur (QImage &image, int radius, const QColor &color) |
QPixmap | shadowText (QString text, 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) |
Function Documentation
PLASMA_EXPORT QPainterPath Plasma::PaintUtils::roundedRectangle | ( | const QRectF & | rect, | |
qreal | radius | |||
) |
Returns a nicely rounded rectanglular path for painting.
Definition at line 100 of file paintutils.cpp.
PLASMA_EXPORT QPixmap Plasma::PaintUtils::shadowText | ( | QString | text, | |
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 47 of file paintutils.cpp.