• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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, 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 shadowText (QString text, QColor textColor, QColor shadowColor, QPoint offset, int radius)
 
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

◆ centerPixmaps()

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.

◆ drawHalo()

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

Definition at line 154 of file paintutils.cpp.

◆ roundedRectangle()

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.

◆ shadowBlur()

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.

◆ shadowText() [1/2]

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.

◆ shadowText() [2/2]

QPixmap Plasma::PaintUtils::shadowText ( QString text,
QColor textColor,
QColor shadowColor,
QPoint offset,
int radius )

Definition at line 56 of file paintutils.cpp.

◆ texturedText()

QPixmap Plasma::PaintUtils::texturedText ( const QString & text,
const QFont & font,
Plasma::Svg * texture )

Definition at line 107 of file paintutils.cpp.

◆ transition()

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-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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