Plasma
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 | texturedText (const QString &text, const QFont &font, Plasma::Svg *texture) |
QPixmap | transition (const QPixmap &from, const QPixmap &to, qreal amount) |
Detailed Description
Namespace for all Image Effects specific to Plasma.
Function Documentation
center two pixmap together in the biggest rectangle
- Since
- 4.5
Definition at line 174 of file paintutils.cpp.
Definition at line 154 of file paintutils.cpp.
QPainterPath Plasma::PaintUtils::roundedRectangle | ( | const QRectF & | rect, |
qreal | radius | ||
) |
Returns a nicely rounded rectanglular path for painting.
Definition at line 159 of file paintutils.cpp.
Creates a blurred shadow of the supplied image.
Definition at line 38 of file paintutils.cpp.
QPixmap Plasma::PaintUtils::shadowText | ( | QString | text, |
QColor | textColor, | ||
QColor | shadowColor, | ||
QPoint | offset, | ||
int | radius | ||
) |
Definition at line 56 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 61 of file paintutils.cpp.
QPixmap Plasma::PaintUtils::texturedText | ( | const QString & | text, |
const QFont & | font, | ||
Plasma::Svg * | texture | ||
) |
Definition at line 107 of file paintutils.cpp.
Blends a pixmap into another.
Definition at line 208 of file paintutils.cpp.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.