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\d32video.inl
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
_LIT(KRDeviceVideo,"Video");
|
|
19 |
inline TInt RDeviceVideo::Open()
|
|
20 |
{return(DoCreate(KRDeviceVideo,VersionRequired(),KNullUnit,NULL,NULL));}
|
|
21 |
inline void RDeviceVideo::Start()
|
|
22 |
{DoControl(EControlStart);}
|
|
23 |
inline TVersion RDeviceVideo::VersionRequired() const
|
|
24 |
{return(TVersion(EMajorVersionNumber,EMinorVersionNumber,EBuildVersionNumber));}
|
|
25 |
inline void RDeviceVideo::Caps(TDes8 &aCaps)
|
|
26 |
{DoControl(EControlCaps,&aCaps);}
|
|
27 |
inline void RDeviceVideo::Blit(TDes8 &aBlitInfo)
|
|
28 |
{DoControl(EControlBlit,&aBlitInfo);}
|
|
29 |
inline void RDeviceVideo::SetPixel(TDes8 &aPixelInfo)
|
|
30 |
{DoControl(EControlSetPixel,&aPixelInfo);}
|
|
31 |
inline void RDeviceVideo::Mode(TVideoMode *aMode)
|
|
32 |
{DoControl(EControlMode,(TAny*)aMode);}
|
|
33 |
inline TInt RDeviceVideo::SetMode(TVideoMode aMode)
|
|
34 |
{return(DoControl(EControlSetMode,(TAny*)aMode));}
|
|
35 |
inline void RDeviceVideo::SetPaletteEntry(TInt aIndex,TUint aEntry)
|
|
36 |
{DoControl(EControlSetPaletteEntry,(TAny*)aIndex,(TAny*)aEntry);}
|
|
37 |
inline void RDeviceVideo::ScrollUp(const TRect& aRect)
|
|
38 |
{DoControl(EControlScrollUp,(TRect*)&aRect);}
|
|
39 |
inline void RDeviceVideo::Clear(const TRect& aRect)
|
|
40 |
{DoControl(EControlClear,(TRect*)&aRect);}
|
|
41 |
inline TInt RDeviceVideo::GetPixel(const TPoint& aPoint)
|
|
42 |
{return DoControl(EControlGetPixel,(TPoint*)&aPoint);}
|
|
43 |
inline void RDeviceVideo::SetWord(const TPoint& aPoint,TInt& aWord)
|
|
44 |
{DoControl(EControlSetWord,(TPoint*)&aPoint,&aWord);}
|
|
45 |
inline TInt RDeviceVideo::GetWord(const TPoint& aPoint)
|
|
46 |
{return (DoControl(EControlGetWord,(TPoint*)&aPoint));}
|
|
47 |
inline void RDeviceVideo::SetLine(const TPoint& aPoint,const TPixelLine& aPixelLine)
|
|
48 |
{DoControl(EControlSetLine,(TPoint*)&aPoint,(TPixelLine*)&aPixelLine);}
|
|
49 |
inline void RDeviceVideo::GetLine(const TPoint& aPoint,TPixelLine& aPixelLine)
|
|
50 |
{DoControl(EControlGetLine,(TPoint*)&aPoint,&aPixelLine);}
|
|
51 |
|
|
52 |
inline TBlitInfo::TBlitInfo(const TText *aBuffer,const TColour aColour, const TInt aLength,const TInt aX,const TInt aY)
|
|
53 |
:iBuffer(aBuffer),iColour(aColour),iLength(aLength),iX(aX),iY(aY)
|
|
54 |
{
|
|
55 |
}
|
|
56 |
inline TBlitInfo::TBlitInfo()
|
|
57 |
:iBuffer(0),iColour(EBlack),iLength(0),iX(0),iY(0)
|
|
58 |
{
|
|
59 |
}
|
|
60 |
inline TPixelInfo::TPixelInfo(const TInt aX,const TInt aY,const TColour aColour)
|
|
61 |
:iColour(aColour),iX(aX),iY(aY)
|
|
62 |
{
|
|
63 |
}
|
|
64 |
inline TPixelInfo::TPixelInfo()
|
|
65 |
:iColour(EBlack),iX(0),iY(0)
|
|
66 |
{
|
|
67 |
}
|
|
68 |
|