emailuis/uicomponents/src/fstextviewerwatermark.cpp
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c)  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:  Watermark texture storage class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "emailtrace.h"
       
    20 #include "fstextviewerwatermark.h"
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // NewL
       
    24 // ---------------------------------------------------------------------------
       
    25 EXPORT_C CFsTextViewerWatermark* CFsTextViewerWatermark::NewL ( 
       
    26                                 CAlfTexture& aTexture, TReal32 aOpacity )
       
    27     {
       
    28     FUNC_LOG;
       
    29     CFsTextViewerWatermark* self = new ( ELeave ) 
       
    30                                 CFsTextViewerWatermark( &aTexture, aOpacity );
       
    31     CleanupStack::PushL( self );
       
    32     self->ConstructL();
       
    33     CleanupStack::Pop( self );
       
    34     return self;
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // ~CFsTextViewerWatermark
       
    39 // ---------------------------------------------------------------------------
       
    40 EXPORT_C CFsTextViewerWatermark::~CFsTextViewerWatermark()
       
    41     {
       
    42     FUNC_LOG;
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // SetRect
       
    47 // ---------------------------------------------------------------------------
       
    48 EXPORT_C void CFsTextViewerWatermark::SetRect( TRect aRect )
       
    49     {
       
    50     FUNC_LOG;
       
    51     iRect = aRect;
       
    52     }
       
    53 
       
    54 // ---------------------------------------------------------------------------
       
    55 // Rect
       
    56 // ---------------------------------------------------------------------------
       
    57 EXPORT_C TRect CFsTextViewerWatermark::Rect()
       
    58     {
       
    59     FUNC_LOG;
       
    60     return iRect;
       
    61     }
       
    62 
       
    63 // ---------------------------------------------------------------------------
       
    64 // Texture
       
    65 // ---------------------------------------------------------------------------
       
    66 CAlfTexture& CFsTextViewerWatermark::Texture()
       
    67     {
       
    68     FUNC_LOG;
       
    69     return *iTexture;
       
    70     }
       
    71 
       
    72 // ---------------------------------------------------------------------------
       
    73 // Opacity
       
    74 // ---------------------------------------------------------------------------
       
    75 TReal32 CFsTextViewerWatermark::Opacity()
       
    76     {
       
    77     FUNC_LOG;
       
    78     return iOpacity;
       
    79     }
       
    80 
       
    81 // ---------------------------------------------------------------------------
       
    82 // CFsTextViewerWatermark
       
    83 // ---------------------------------------------------------------------------
       
    84 CFsTextViewerWatermark::CFsTextViewerWatermark( 
       
    85         CAlfTexture* aTexture, 
       
    86         TReal32 aOpacity ) :
       
    87     iTexture( aTexture ),
       
    88     iOpacity( aOpacity )
       
    89     {
       
    90     FUNC_LOG;
       
    91     }
       
    92 
       
    93 // ---------------------------------------------------------------------------
       
    94 // ConstructL
       
    95 // ---------------------------------------------------------------------------
       
    96 void CFsTextViewerWatermark::ConstructL()
       
    97     {
       
    98     FUNC_LOG;
       
    99     }
       
   100