emailuis/uicomponents/src/fstextviewerwatermark.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 31 Mar 2010 21:08:33 +0300
branchRCL_3
changeset 16 4ce476e64c59
parent 0 8466d47a6819
permissions -rw-r--r--
Revision: 201011 Kit: 201013

/*
* Copyright (c)  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:  Watermark texture storage class
*
*/


#include "emailtrace.h"
#include "fstextviewerwatermark.h"

// ---------------------------------------------------------------------------
// NewL
// ---------------------------------------------------------------------------
EXPORT_C CFsTextViewerWatermark* CFsTextViewerWatermark::NewL ( 
                                CAlfTexture& aTexture, TReal32 aOpacity )
    {
    FUNC_LOG;
    CFsTextViewerWatermark* self = new ( ELeave ) 
                                CFsTextViewerWatermark( &aTexture, aOpacity );
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop( self );
    return self;
    }

// ---------------------------------------------------------------------------
// ~CFsTextViewerWatermark
// ---------------------------------------------------------------------------
EXPORT_C CFsTextViewerWatermark::~CFsTextViewerWatermark()
    {
    FUNC_LOG;
    }

// ---------------------------------------------------------------------------
// SetRect
// ---------------------------------------------------------------------------
EXPORT_C void CFsTextViewerWatermark::SetRect( TRect aRect )
    {
    FUNC_LOG;
    iRect = aRect;
    }

// ---------------------------------------------------------------------------
// Rect
// ---------------------------------------------------------------------------
EXPORT_C TRect CFsTextViewerWatermark::Rect()
    {
    FUNC_LOG;
    return iRect;
    }

// ---------------------------------------------------------------------------
// Texture
// ---------------------------------------------------------------------------
CAlfTexture& CFsTextViewerWatermark::Texture()
    {
    FUNC_LOG;
    return *iTexture;
    }

// ---------------------------------------------------------------------------
// Opacity
// ---------------------------------------------------------------------------
TReal32 CFsTextViewerWatermark::Opacity()
    {
    FUNC_LOG;
    return iOpacity;
    }

// ---------------------------------------------------------------------------
// CFsTextViewerWatermark
// ---------------------------------------------------------------------------
CFsTextViewerWatermark::CFsTextViewerWatermark( 
        CAlfTexture* aTexture, 
        TReal32 aOpacity ) :
    iTexture( aTexture ),
    iOpacity( aOpacity )
    {
    FUNC_LOG;
    }

// ---------------------------------------------------------------------------
// ConstructL
// ---------------------------------------------------------------------------
void CFsTextViewerWatermark::ConstructL()
    {
    FUNC_LOG;
    }