Add EffectWindow::isPaintingEnabled() to check whether painting of that window is enabled (surprise!)

svn path=/branches/work/kwin_composite/; revision=658747
This commit is contained in:
Rivo Laks 2007-04-28 12:21:14 +00:00
parent 118a15c3d7
commit 9342f6902c
3 changed files with 7 additions and 0 deletions

View file

@ -696,6 +696,11 @@ EffectWindowImpl::~EffectWindowImpl()
{ {
} }
bool EffectWindowImpl::isPaintingEnabled()
{
return sceneWindow()->isPaintingEnabled();
}
void EffectWindowImpl::enablePainting( int reason ) void EffectWindowImpl::enablePainting( int reason )
{ {
sceneWindow()->enablePainting( reason ); sceneWindow()->enablePainting( reason );

View file

@ -124,6 +124,7 @@ class EffectWindowImpl : public EffectWindow
virtual void enablePainting( int reason ); virtual void enablePainting( int reason );
virtual void disablePainting( int reason ); virtual void disablePainting( int reason );
virtual bool isPaintingEnabled();
virtual void addRepaint( const QRect& r ); virtual void addRepaint( const QRect& r );
virtual void addRepaint( int x, int y, int w, int h ); virtual void addRepaint( int x, int y, int w, int h );
virtual void addRepaintFull(); virtual void addRepaintFull();

View file

@ -260,6 +260,7 @@ class KWIN_EXPORT EffectWindow
virtual void enablePainting( int reason ) = 0; virtual void enablePainting( int reason ) = 0;
virtual void disablePainting( int reason ) = 0; virtual void disablePainting( int reason ) = 0;
virtual bool isPaintingEnabled() = 0;
virtual void addRepaint( const QRect& r ) = 0; virtual void addRepaint( const QRect& r ) = 0;
virtual void addRepaint( int x, int y, int w, int h ) = 0; virtual void addRepaint( int x, int y, int w, int h ) = 0;
virtual void addRepaintFull() = 0; virtual void addRepaintFull() = 0;