examples/Multimedia/ImageConv/src/CImageAppView.h

00001 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 //
00015 
00016 #ifndef CIMAGEAPPVIEW
00017 #define CIMAGEAPPVIEW
00018 
00019 #include <coecntrl.h> 
00020 #include <fbs.h>
00021 
00022 #include "CImageAppUi.h"
00023 
00024 // Application view: displays the bitmap
00025 class CImageAppView : public CCoeControl, public MCoeControlBrushContext
00026     {
00027 public:
00028     void ConstructL(const TRect& aRect);
00029         
00030         // Get display mode
00031         TDisplayMode DisplayMode() const;
00032         // Draw view
00033         void DrawBitmapNow();
00034         // Clear view
00035         void Clear();
00036         // Set bitmap to draw
00037         void SetBitmap(CFbsBitmap* aBitmap);
00038 
00039 private:
00040         // from CCoeControl
00041         void Draw(const TRect& /*aRect*/) const;
00042 
00043 private:
00044         CFbsBitmap* iBitmap;
00045     };
00046 
00047 #endif
00048 

Generated on Thu Jan 21 10:32:59 2010 for TB10.1 Example Applications by  doxygen 1.5.3