emailuis/uicomponents/inc/fstextviewerwatermark.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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:  API class for TextViewer component
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_FSTEXTVIEWERWATERMARK_H
       
    20 #define C_FSTEXTVIEWERWATERMARK_H
       
    21 
       
    22 //<cmail> removed __FS_ALFRED_SUPPORT flag
       
    23 //#include <fsconfig.h>
       
    24 //</cmail> removed __FS_ALFRED_SUPPORT flag
       
    25 #include <e32base.h>
       
    26 
       
    27 class CAlfTexture;
       
    28 
       
    29 class CFsTextViewerWatermark : public CBase
       
    30     {
       
    31     public:
       
    32         IMPORT_C static CFsTextViewerWatermark* NewL ( 
       
    33                 CAlfTexture& aTexture, 
       
    34                 TReal32 aOpacity = 0.33f );
       
    35         IMPORT_C ~CFsTextViewerWatermark();
       
    36         IMPORT_C void SetRect( TRect aRect );
       
    37         IMPORT_C TRect Rect();
       
    38         CAlfTexture& Texture();
       
    39         TReal32 Opacity();
       
    40 
       
    41     private:
       
    42         CFsTextViewerWatermark( 
       
    43                 CAlfTexture* aTexture, 
       
    44                 TReal32 aOpacity = 0.33f );
       
    45         void ConstructL();
       
    46 
       
    47     private:
       
    48         CAlfTexture* iTexture;
       
    49         TReal32 iOpacity;
       
    50         TRect iRect;
       
    51     };
       
    52 
       
    53 #endif //C_FSTEXTVIEWERWATERMARK_H