Plasma
paintutils.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef PLASMA_PAINTUTILS_H
00022 #define PLASMA_PAINTUTILS_H
00023
00024 #include <QtGui/QApplication>
00025 #include <QtGui/QGraphicsItem>
00026 #include <QtGui/QPainterPath>
00027
00028 #include <plasma/plasma_export.h>
00029 #include "theme.h"
00030
00033 namespace Plasma
00034 {
00035
00039 namespace PaintUtils
00040 {
00041
00045 PLASMA_EXPORT void shadowBlur(QImage &image, int radius, const QColor &color);
00046
00051 PLASMA_EXPORT QPixmap shadowText(QString text,
00052 const QFont &font,
00053 QColor textColor = Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor),
00054 QColor shadowColor = Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor),
00055 QPoint offset = QPoint(1,1),
00056 int radius = 2);
00057
00058 PLASMA_EXPORT QPixmap shadowText(QString text,
00059 QColor textColor = Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor),
00060 QColor shadowColor = Plasma::Theme::defaultTheme()->color(Plasma::Theme::BackgroundColor),
00061 QPoint offset = QPoint(1,1),
00062 int radius = 2);
00063
00067 PLASMA_EXPORT QPainterPath roundedRectangle(const QRectF &rect, qreal radius);
00068
00072 PLASMA_EXPORT QPixmap transition(const QPixmap &from, const QPixmap &to, qreal amount);
00073
00074 }
00075
00076 }
00077
00078 #endif