javauis/mmapi_akn/baseline/inc/cmmacanvasdisplay.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 11 May 2010 16:07:20 +0300
branchRCL_3
changeset 17 0fd27995241b
parent 14 04becd199f91
permissions -rw-r--r--
Revision: v2.1.24 Kit: 201019

/*
* Copyright (c) 2002-2007 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:  Draws to Canvas.
*
*/


#ifndef CMMACANVASDISPLAY_H
#define CMMACANVASDISPLAY_H

//  INCLUDES
#include "cmmadisplay.h"

//  FORWARD DECLARATIONS
class CFbsBitmap;
class CMMABitmapWindow;
class MMIDCanvas;

//  CLASS DECLARATION
/**
*   Display for MMIDCanvas objects.
*
*
*/

NONSHARABLE_CLASS(CMMACanvasDisplay): public CMMADisplay
{
public:     // Constructors and destructors
    static CMMACanvasDisplay* NewLC(MMIDCanvas* aCanvas);

    ~CMMACanvasDisplay();  // Destructor ()


public: // From MMMADisplay
    void SourceSizeChanged(const TSize& aSourceSize);
    void SetFullScreenL(TBool aFullScreen);
    void SetDisplayLocationL(const TPoint& aPosition);
    TPoint DisplayLocation();
    void SetWindowL(MMMADisplayWindow* aWindow);

public:
    void MdcContentBoundsChanged(const TRect& aRect);
protected:  // Constructors and destructors

    // Default constructor, protected to allow derivation
    CMMACanvasDisplay(MMIDCanvas* aCanvas);

private:    // Data
    MMIDCanvas* iCanvas;
};

#endif // CMMACANVASDISPLAY_H