Add EffectWindow::shape()
svn path=/trunk/KDE/kdebase/workspace/; revision=746064
This commit is contained in:
parent
be3271c8e0
commit
bd19b6dc45
3 changed files with 14 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue