• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
kiconeffect.h
1/*
2 *
3 * This file is part of the KDE project, module tdecore.
4 * Copyright (C) 2000 Geert Jansen <jansen@kde.org>
5 * with minor additions and based on ideas from
6 * Torsten Rahn <torsten@kde.org>
7 *
8 * This is free software; it comes under the GNU Library General
9 * Public License, version 2. See the file "COPYING.LIB" for the
10 * exact licensing terms.
11 */
12
13#ifndef __TDEIconEffect_h_Included__
14#define __TDEIconEffect_h_Included__
15
16#include <tqimage.h>
17#include <tqpixmap.h>
18#include <tqcolor.h>
19#include <tqrect.h>
20#include "tdelibs_export.h"
21
22class TQWidget;
23
24class TDEIconEffectPrivate;
25
34class TDECORE_EXPORT TDEIconEffect
35{
36public:
40 TDEIconEffect();
41 ~TDEIconEffect();
42
55 enum Effects { NoEffect, ToGray, Colorize, ToGamma, DeSaturate,
56 ToMonochrome,
57 LastEffect };
58
62 void init();
63
73 bool hasEffect(int group, int state) const;
74
83 TQString fingerprint(int group, int state) const;
84
93 TQImage apply(TQImage src, int group, int state) const;
94
104 // KDE4: make them references
105 TQImage apply(TQImage src, int effect, float value, const TQColor rgb, bool trans) const;
109 TQImage apply(TQImage src, int effect, float value, const TQColor rgb, const TQColor rgb2, bool trans) const;
110
118 TQPixmap apply(TQPixmap src, int group, int state) const;
119
129 TQPixmap apply(TQPixmap src, int effect, float value, const TQColor rgb, bool trans) const;
133 TQPixmap apply(TQPixmap src, int effect, float value, const TQColor rgb, const TQColor rgb2, bool trans) const;
134
140 TQImage doublePixels(TQImage src) const;
141
154 static void visualActivate(TQWidget *widget, TQRect rect);
155 static void visualActivate(TQWidget *widget, TQRect rect, TQPixmap *pixmap);
156
163 static void toGray(TQImage &image, float value);
164
172 static void colorize(TQImage &image, const TQColor &col, float value);
173
183 static void toMonochrome(TQImage &image, const TQColor &black, const TQColor &white, float value);
184
191 static void deSaturate(TQImage &image, float value);
192
199 static void toGamma(TQImage &image, float value);
200
206 static void semiTransparent(TQImage &image);
207
213 static void semiTransparent(TQPixmap &pixmap);
214
221 static void overlay(TQImage &src, TQImage &overlay);
222
223private:
224 int mEffect[6][3];
225 float mValue[6][3];
226 TQColor mColor[6][3];
227 bool mTrans[6][3];
228 TDEIconEffectPrivate *d;
229};
230
231#endif
TDEIconEffect
Applies effects to icons.
Definition: kiconeffect.h:35
TDEIconEffect::Effects
Effects
This is the enumeration of all possible icon effects.
Definition: kiconeffect.h:55
TDEIconEffect::ToMonochrome
@ ToMonochrome
Definition: kiconeffect.h:56

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.