0
|
1 |
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// e32\include\w32disp.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __W32DISP_H__
|
|
19 |
#define __W32DISP_H__
|
|
20 |
#include "d32video.h"
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Screen Driver container class
|
|
24 |
*/
|
|
25 |
class CScreenDriver : public CBase
|
|
26 |
{
|
|
27 |
public:
|
|
28 |
IMPORT_C static CScreenDriver *New();
|
|
29 |
virtual void Init(TSize &aScreenSize,TSize &aFontSize) =0;
|
|
30 |
virtual void Blit(const TText *aBuffer,TInt aLength,const TPoint &aPosition) =0;
|
|
31 |
virtual TBool ScrollUp(const TRect& aRect) =0;
|
|
32 |
virtual void Clear(const TRect& aRect) =0;
|
|
33 |
|
|
34 |
virtual void SetPixel(const TPoint& aPoint,TUint8 aColour)=0;
|
|
35 |
virtual TInt GetPixel(const TPoint& aPoint)=0;
|
|
36 |
virtual void SetWord(const TPoint& aPoint,TInt aWord)=0;
|
|
37 |
virtual TInt GetWord(const TPoint& aPoint)=0;
|
|
38 |
virtual void SetLine(const TPoint& aPoint,const TPixelLine& aPixelLine)=0;
|
|
39 |
virtual void GetLine(const TPoint& aPoint,TPixelLine& aPixelLine)=0;
|
|
40 |
|
|
41 |
virtual TInt SetMode(TVideoMode aMode)=0;
|
|
42 |
|
|
43 |
virtual void SetPaletteEntry(TColorIndex anIndex,TUint8 aRed,TUint8 aGreen,TUint8 aBlue)=0;
|
|
44 |
virtual void GetPaletteEntry(TColorIndex anIndex,TUint8 &aRed,TUint8 &aGreen,TUint8 &aBlue)=0;
|
|
45 |
virtual void SetForegroundColor(TColorIndex anIndex)=0;
|
|
46 |
virtual void SetBackgroundColor(TColorIndex anIndex)=0;
|
|
47 |
virtual void GetAttributeColors(TColorIndex* anArray)=0;
|
|
48 |
};
|
|
49 |
#endif
|