Add EffectWindow::shape()

svn path=/trunk/KDE/kdebase/workspace/; revision=746064
icc-effect-5.14.5
Rivo Laks 2007-12-07 18:03:24 +00:00
parent be3271c8e0
commit bd19b6dc45
3 changed files with 14 additions and 0 deletions

View File

@ -981,6 +981,11 @@ QRect EffectWindowImpl::geometry() const
return toplevel->geometry();
}
QRegion EffectWindowImpl::shape() const
{
return sw ? sw->shape() : geometry();
}
QSize EffectWindowImpl::size() const
{
return toplevel->size();

View File

@ -183,6 +183,7 @@ class EffectWindowImpl : public EffectWindow
virtual int width() const;
virtual int height() const;
virtual QRect geometry() const;
virtual QRegion shape() const;
virtual QPoint pos() const;
virtual QSize size() const;
virtual QRect rect() const;

View File

@ -490,6 +490,7 @@ class KWIN_EXPORT EffectWindow
virtual int width() const = 0;
virtual int height() const = 0;
virtual QRect geometry() const = 0;
virtual QRegion shape() const = 0;
virtual QPoint pos() const = 0;
virtual QSize size() const = 0;
virtual QRect rect() const = 0;
@ -627,7 +628,14 @@ class KWIN_EXPORT WindowPrePaintData
{
public:
int mask;
/**
* Region that will be painted, in screen coordinates.
**/
QRegion paint;
/**
* The clip region will be substracted from paint region of following windows.
* I.e. window will definitely cover it's clip region
**/
QRegion clip;
WindowQuadList quads;
/**