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

Plasma

  • Plasma
  • PaintUtils
Functions
Plasma::PaintUtils Namespace Reference

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

void Plasma::PaintUtils::centerPixmaps ( QPixmap &  from,
QPixmap &  to 
)

center two pixmap together in the biggest rectangle

Since
4.5

Definition at line 174 of file paintutils.cpp.

void Plasma::PaintUtils::drawHalo ( QPainter *  painter,
const QRectF &  rect 
)

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.

void Plasma::PaintUtils::shadowBlur ( QImage &  image,
int  radius,
const QColor &  color 
)

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.

QPixmap Plasma::PaintUtils::transition ( const QPixmap &  from,
const QPixmap &  to,
qreal  amount 
)

Blends a pixmap into another.

Definition at line 208 of file paintutils.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Plasma

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal