Add EffectsHandler::decorationsHaveAlpha().

Effects can use this method to check if the decorations use
the alpha channel.

svn path=/trunk/KDE/kdebase/workspace/; revision=1099522
icc-effect-5.14.5
Fredrik Höglund 2010-03-05 18:21:14 +00:00
parent 17db9864aa
commit 55b5b593b2
3 changed files with 13 additions and 0 deletions

View File

@ -238,6 +238,11 @@ bool EffectsHandlerImpl::hasDecorationShadows() const
return Workspace::self()->hasDecorationShadows();
}
bool EffectsHandlerImpl::decorationsHaveAlpha() const
{
return Workspace::self()->decorationHasAlpha();
}
// start another painting pass
void EffectsHandlerImpl::startPaint()
{

View File

@ -139,6 +139,8 @@ class EffectsHandlerImpl : public EffectsHandler
virtual bool hasDecorationShadows() const;
virtual bool decorationsHaveAlpha() const;
// internal (used by kwin core or compositing code)
void startPaint();
void windowUserMovedResized( EffectWindow* c, bool first, bool last );

View File

@ -730,6 +730,12 @@ class KWIN_EXPORT EffectsHandler
*/
virtual bool hasDecorationShadows() const = 0;
/**
* Returns @a true if the window decorations use the alpha channel, and @a false otherwise.
* @since 4.5
*/
virtual bool decorationsHaveAlpha() const = 0;
/**
* @deprecated
* @see EffectFrame