• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Plasma

paintutils.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright 2005 by Aaron Seigo <aseigo@kde.org>
00003  *   Copyright 2008 by Andrew Lake <jamboarder@yahoo.com>
00004  *
00005  *   This program is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU Library General Public License as
00007  *   published by the Free Software Foundation; either version 2, or
00008  *   (at your option) any later version.
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details
00014  *
00015  *   You should have received a copy of the GNU Library General Public
00016  *   License along with this program; if not, write to the
00017  *   Free Software Foundation, Inc.,
00018  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
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 } // PaintUtils namespace
00075 
00076 } // Plasma namespace
00077 
00078 #endif

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal