diff -r 000000000000 -r 15bf7259bb7c uiacceltk/hitchcock/coretoolkit/inc/huicanvasrenderbuffer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiacceltk/hitchcock/coretoolkit/inc/huicanvasrenderbuffer.h Tue Feb 02 07:56:43 2010 +0200 @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2006-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: Definition of CHuiCanvasRenderBuffer +* +*/ + + + +#ifndef __HUICANVASRENDERBUFFER_H__ +#define __HUICANVASRENDERBUFFER_H__ + + +#include + +/* Forward declarations. */ +class CHuiRenderPlugin; + +class CHuiCanvasRenderBuffer : public CBase + { +public: + + /** + * Constructor. + */ + IMPORT_C CHuiCanvasRenderBuffer(); + + /** + * Destructor. + */ + IMPORT_C ~CHuiCanvasRenderBuffer(); + + /** + * Initializes render buffer. + */ + IMPORT_C virtual void InitializeL(const TSize& aSize); + + /** + * Releases render buffer resources. + */ + IMPORT_C virtual void UnInitialize(); + + /** + * Binds as render target. + */ + IMPORT_C virtual void Bind(); + + /** + * Unbinds as from being the active render target. + */ + IMPORT_C virtual void UnBind(); + + /** + * Returns size in pixels. + */ + IMPORT_C TSize Size() const; + + /** + * Is buffer initilized or not + */ + IMPORT_C TBool IsInitialized() const; + + /** + * Copies content from the given buffer + */ + IMPORT_C virtual void Copy(const CHuiCanvasRenderBuffer& aSourceBuffer); + + /** + * Copies content from the active surface. + */ + IMPORT_C virtual void Copy(TPoint aPoint); + +protected: + + TSize iSize; + TBool iInitialized; + + }; + +#endif +