os/kernelhwsrv/kernel/eka/include/d32video.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// e32\include\d32video.inl
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
_LIT(KRDeviceVideo,"Video");
sl@0
    19
inline TInt RDeviceVideo::Open()
sl@0
    20
	{return(DoCreate(KRDeviceVideo,VersionRequired(),KNullUnit,NULL,NULL));}
sl@0
    21
inline void RDeviceVideo::Start()
sl@0
    22
	{DoControl(EControlStart);}
sl@0
    23
inline TVersion RDeviceVideo::VersionRequired() const
sl@0
    24
	{return(TVersion(EMajorVersionNumber,EMinorVersionNumber,EBuildVersionNumber));}
sl@0
    25
inline void RDeviceVideo::Caps(TDes8 &aCaps)
sl@0
    26
	{DoControl(EControlCaps,&aCaps);}
sl@0
    27
inline void RDeviceVideo::Blit(TDes8 &aBlitInfo)
sl@0
    28
	{DoControl(EControlBlit,&aBlitInfo);}
sl@0
    29
inline void RDeviceVideo::SetPixel(TDes8 &aPixelInfo)
sl@0
    30
	{DoControl(EControlSetPixel,&aPixelInfo);}
sl@0
    31
inline void RDeviceVideo::Mode(TVideoMode *aMode)
sl@0
    32
	{DoControl(EControlMode,(TAny*)aMode);}
sl@0
    33
inline TInt RDeviceVideo::SetMode(TVideoMode aMode)
sl@0
    34
	{return(DoControl(EControlSetMode,(TAny*)aMode));}
sl@0
    35
inline void RDeviceVideo::SetPaletteEntry(TInt aIndex,TUint aEntry)
sl@0
    36
	{DoControl(EControlSetPaletteEntry,(TAny*)aIndex,(TAny*)aEntry);}
sl@0
    37
inline void RDeviceVideo::ScrollUp(const TRect& aRect)
sl@0
    38
	{DoControl(EControlScrollUp,(TRect*)&aRect);}
sl@0
    39
inline void RDeviceVideo::Clear(const TRect& aRect)
sl@0
    40
	{DoControl(EControlClear,(TRect*)&aRect);}
sl@0
    41
inline TInt RDeviceVideo::GetPixel(const TPoint& aPoint)
sl@0
    42
	{return DoControl(EControlGetPixel,(TPoint*)&aPoint);} 
sl@0
    43
inline void RDeviceVideo::SetWord(const TPoint& aPoint,TInt& aWord)
sl@0
    44
	{DoControl(EControlSetWord,(TPoint*)&aPoint,&aWord);}
sl@0
    45
inline TInt RDeviceVideo::GetWord(const TPoint& aPoint)
sl@0
    46
	{return (DoControl(EControlGetWord,(TPoint*)&aPoint));}
sl@0
    47
inline void RDeviceVideo::SetLine(const TPoint& aPoint,const TPixelLine& aPixelLine)
sl@0
    48
	{DoControl(EControlSetLine,(TPoint*)&aPoint,(TPixelLine*)&aPixelLine);}
sl@0
    49
inline void RDeviceVideo::GetLine(const TPoint& aPoint,TPixelLine& aPixelLine)
sl@0
    50
	{DoControl(EControlGetLine,(TPoint*)&aPoint,&aPixelLine);}
sl@0
    51
sl@0
    52
inline TBlitInfo::TBlitInfo(const TText *aBuffer,const TColour aColour, const TInt aLength,const TInt aX,const TInt aY)
sl@0
    53
	:iBuffer(aBuffer),iColour(aColour),iLength(aLength),iX(aX),iY(aY)
sl@0
    54
	{
sl@0
    55
	} 
sl@0
    56
inline TBlitInfo::TBlitInfo()
sl@0
    57
	:iBuffer(0),iColour(EBlack),iLength(0),iX(0),iY(0)
sl@0
    58
	{
sl@0
    59
	} 
sl@0
    60
inline TPixelInfo::TPixelInfo(const TInt aX,const TInt aY,const TColour aColour)
sl@0
    61
	:iColour(aColour),iX(aX),iY(aY)
sl@0
    62
	{
sl@0
    63
	} 
sl@0
    64
inline TPixelInfo::TPixelInfo()
sl@0
    65
	:iColour(EBlack),iX(0),iY(0)
sl@0
    66
	{
sl@0
    67
	} 
sl@0
    68