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

libplasma

Plasma::PaintUtils

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 void Plasma::PaintUtils::shadowBlur ( QImage &  image,
int  radius,
const QColor &  color 
)

Creates a blurred shadow of the supplied image.

Definition at line 35 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.

libplasma

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
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