kwin/effects/invert.h
Rivo Laks f69139e825 Add invert effect which inverts aka negates desktop's colors.
Shortcut is Ctrl+F6 for now.
  Requires shaders.

svn path=/trunk/KDE/kdebase/workspace/; revision=683162
2007-07-04 09:59:07 +00:00

34 lines
702 B
C++

/*****************************************************************
KWin - the KDE window manager
This file is part of the KDE project.
Copyright (C) 2007 Rivo Laks <rivolaks@hot.ee>
You can Freely distribute this program under the GNU General Public
License. See the file "COPYING" for the exact licensing terms.
******************************************************************/
#ifndef KWIN_INVERT_H
#define KWIN_INVERT_H
#include <kwinshadereffect.h>
namespace KWin
{
/**
* Inverts desktop's colors
**/
class InvertEffect : public QObject, public ShaderEffect
{
Q_OBJECT
public:
InvertEffect();
public slots:
void toggle();
};
} // namespace
#endif