KWinLibraries
KWin::PaintClipper Class Reference
[KWin effects library]
#include <kwineffects.h>
Detailed Description
Helper class for restricting painting area only to allowed area.This helper class helps specifying areas that should be painted, clipping out the rest. The simplest usage is creating an object on the stack and giving it the area that is allowed to be painted to. When the object is destroyed, the restriction will be removed. Note that all painting code must use paintArea() to actually perform the clipping.
Definition at line 925 of file kwineffects.h.
Public Member Functions | |
PaintClipper (const QRegion &allowed_area) | |
~PaintClipper () | |
Static Public Member Functions | |
static bool | clip () |
static QRegion | paintArea () |
static void | pop (const QRegion &allowed_area) |
static void | push (const QRegion &allowed_area) |
Classes | |
class | Iterator |
Helper class to perform the clipped painting. More... |
Constructor & Destructor Documentation
KWin::PaintClipper::PaintClipper | ( | const QRegion & | allowed_area | ) |
The documentation for this class was generated from the following files: