• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KWinLibraries

KWin::PaintClipper

KWin::PaintClipper Class Reference
[KWin effects library]

Helper class for restricting painting area only to allowed area. More...

#include <kwineffects.h>

List of all members.


Classes

class  Iterator
 Helper class to perform the clipped painting. More...

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)

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 1047 of file kwineffects.h.


Constructor & Destructor Documentation

KWin::PaintClipper::PaintClipper ( const QRegion &  allowed_area  ) 

Calls push().

Definition at line 814 of file kwineffects.cpp.


The documentation for this class was generated from the following files:
  • kwineffects.h
  • kwineffects.cpp

KWinLibraries

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal