uiacceltk/hitchcock/coretoolkit/inc/HuiFxFilterLayer.h
changeset 0 15bf7259bb7c
child 29 ac3859d43844
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef HUIFXFILTERLAYER_H_
       
    21 #define HUIFXFILTERLAYER_H_
       
    22 
       
    23 #include "HuiFxLayer.h"
       
    24 
       
    25 //FORWARD DECLARATIONS
       
    26 class CHuiFxFilter;
       
    27 
       
    28 class CHuiFxFilterLayer: public CHuiFxLayer
       
    29     {
       
    30 public:
       
    31     IMPORT_C ~CHuiFxFilterLayer();
       
    32     IMPORT_C static CHuiFxFilterLayer* NewL(CHuiFxFilter* aFilter); // takes ownership
       
    33     IMPORT_C TBool PrepareDrawL(CHuiFxEngine& aEngine);
       
    34     IMPORT_C void Draw(CHuiFxEngine& aEngine, CHuiGc& aGc, CHuiFxRenderbuffer& aTarget, CHuiFxRenderbuffer& aSource);
       
    35     IMPORT_C CHuiFxFilter& Filter() const;
       
    36     IMPORT_C TBool Changed() const;
       
    37     IMPORT_C void AdvanceTime(TReal32 aElapsedTime);
       
    38     IMPORT_C TBool Margin(TMargins &m);
       
    39 public: // effect cache
       
    40     IMPORT_C CHuiFxFilterLayer *CloneL() const;
       
    41     IMPORT_C void SetExtRect( TRect *aExtRect );
       
    42     IMPORT_C void SetVisual( CHuiVisual *aVisual );
       
    43     IMPORT_C void SetVisual( MHuiEffectable *aVisual );
       
    44 
       
    45     TBool IsFiltered() const; 
       
    46     
       
    47 protected:
       
    48     CHuiFxFilterLayer();
       
    49     void ConstructL(CHuiFxFilter* aFilter);
       
    50 
       
    51 private:
       
    52     CHuiFxFilter*             iFilter;
       
    53     };
       
    54 
       
    55 #endif /*HUIFXFILTERLAYER_H_*/