uiacceltk/hitchcock/coretoolkit/inc/huieffectable.h
author William Roberts <williamr@symbian.org>
Fri, 12 Nov 2010 11:42:24 +0000
branchRCL_3
changeset 66 8ee165fddeb6
parent 63 e1987ab3768a
permissions -rw-r--r--
Change HuiStatic.cpp to avoid VFP instructions in the static initialiser - avoids Bug 3937

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   
*
*/



#ifndef HUIEFFECTABLE_H_
#define HUIEFFECTABLE_H_

class THuiRealRect;
class CHuiFxEffect;
class CHuiGc;

class MHuiEffectable
    {
public:
    virtual ~MHuiEffectable() { }
    virtual void EffectSetEffect(CHuiFxEffect* aEffect)=0;
    virtual TReal32 EffectOpacity() const=0;
    // Sets the effect opacity to be given value if bigger than current. Use aReplace to set any value.
    // This can be used to evaluate the greatest opacity of all effect layers for this effect, so that
    // drawing can determine if effect as a whole will hide the effected visual or not
    virtual void EffectSetOpacityAdditive(TReal32 aOpacity, TBool aReplace)=0;
    virtual void EffectDrawSelf( CHuiGc &aGc, const TRect & aDisplayRect) const=0;
    virtual THuiRealRect EffectDisplayRect() const __SOFTFP=0;
    virtual void SetLoadingEffect(TBool aLoading)=0;
    virtual void EffectSetSource( TBool aIsInput1 )=0;
    virtual TBool EffectGetSource() const=0;
    virtual TBool EffectReadyToDrawNextFrame() const = 0;
    };
    
#endif