os/kernelhwsrv/kernel/eka/include/w32disp.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/include/w32disp.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,49 @@
     1.4 +// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// e32\include\w32disp.h
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef __W32DISP_H__
    1.22 +#define __W32DISP_H__
    1.23 +#include "d32video.h"
    1.24 +
    1.25 +/**
    1.26 + * Screen Driver container class
    1.27 + */
    1.28 +class CScreenDriver : public CBase
    1.29 +	{
    1.30 +public:
    1.31 +	IMPORT_C static CScreenDriver *New();
    1.32 +	virtual void Init(TSize &aScreenSize,TSize &aFontSize) =0;
    1.33 +	virtual void Blit(const TText *aBuffer,TInt aLength,const TPoint &aPosition) =0;
    1.34 +	virtual TBool ScrollUp(const TRect& aRect) =0;
    1.35 +	virtual void Clear(const TRect& aRect) =0;
    1.36 +	
    1.37 +	virtual void SetPixel(const TPoint& aPoint,TUint8 aColour)=0;
    1.38 +	virtual TInt GetPixel(const TPoint& aPoint)=0;
    1.39 +	virtual void SetWord(const TPoint& aPoint,TInt aWord)=0;
    1.40 +	virtual TInt GetWord(const TPoint& aPoint)=0;
    1.41 +	virtual void SetLine(const TPoint& aPoint,const TPixelLine& aPixelLine)=0;
    1.42 +	virtual void GetLine(const TPoint& aPoint,TPixelLine& aPixelLine)=0;
    1.43 +
    1.44 +	virtual TInt SetMode(TVideoMode aMode)=0;
    1.45 +
    1.46 +	virtual void SetPaletteEntry(TColorIndex anIndex,TUint8 aRed,TUint8 aGreen,TUint8 aBlue)=0;
    1.47 +	virtual void GetPaletteEntry(TColorIndex anIndex,TUint8 &aRed,TUint8 &aGreen,TUint8 &aBlue)=0;
    1.48 +	virtual void SetForegroundColor(TColorIndex anIndex)=0;
    1.49 +	virtual void SetBackgroundColor(TColorIndex anIndex)=0;
    1.50 +	virtual void GetAttributeColors(TColorIndex* anArray)=0;
    1.51 +	};
    1.52 +#endif