Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\include\d32video.h
18 #ifndef __D32VIDEO_H__
19 #define __D32VIDEO_H__
24 enum TColour {EWhite=0xf, EWhite1=0xe, EWhite2=0xd, EWhite3=0xc, EWhite4=0xb,
25 ELightGrey=0xa, ELightGrey1=9, ELightGrey2=8, ELightGrey3=7, ELightGrey4=6,
26 EDarkGrey=5, EDarkGrey1=4, EDarkGrey2=3, EDarkGrey3=2, EDarkGrey4=1,
30 const TUint KCapsHues2=0x00000001;
31 const TUint KCapsHues4=0x00000002;
32 const TUint KCapsHues16=0x00000004;
33 const TUint KCapsWidth640=0x01;
34 const TUint KCapsHeight240=0x01;
43 typedef TPckgBuf<TVideoCapsV01> TVideoCaps;
44 class TCapsDevVideoV01
53 inline TBlitInfo(const TText* aBuffer,const TColour aColour, const TInt aLength,const TInt aX, const TInt aY);
57 const TColour iColour;
62 TBlitInfo& operator =(TBlitInfo & aBlitInfo);
68 inline TPixelInfo(const TInt aX, const TInt aY, const TColour aColour);
71 const TColour iColour;
75 TPixelInfo& operator =(TPixelInfo & aPixelInfo);
84 class RDeviceVideo : public RBusLogicalChannel
87 enum TVer {EMajorVersionNumber=1,EMinorVersionNumber=0,EBuildVersionNumber=KE32BuildVersionNumber};
88 enum TControl {EControlStart,EControlMode,EControlSetMode,EControlCaps,EControlSetPaletteEntry,
89 EControlBlit,EControlSetPixel,EControlGetPixel,EControlSetWord,EControlGetWord,
90 EControlSetLine,EControlGetLine,EControlScrollUp,EControlClear};
94 inline TVersion VersionRequired() const;
95 inline void Caps(TDes8 &aCaps);
96 inline void SetPaletteEntry(TInt aIndex,TUint aEntry);
97 inline void Blit(TDes8 &aBlitInfo);
98 inline void SetPixel(TDes8 &aPixelInfo);
99 inline TInt SetMode(TVideoMode aMode);
100 inline void Mode(TVideoMode *aMode);
101 inline void ScrollUp(const TRect& aRect);
102 inline void Clear(const TRect& aRect);
103 inline TInt GetPixel(const TPoint& aPoint);
104 inline void SetWord(const TPoint& aPoint,TInt& aWord);
105 inline TInt GetWord(const TPoint &aPoint);
106 inline void SetLine(const TPoint& aPoint,const TPixelLine& aPixelLine);
107 inline void GetLine(const TPoint& aPoint,TPixelLine& aPixelLine);
109 #include "d32video.inl"