graphicsdeviceinterface/gdi/inc/gdistructs.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:39:21 +0100
branchRCL_3
changeset 164 25ffed67c7ef
parent 163 bbf46f59e123
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201029 Kit: 201035

// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// Header containing the structs TTwoTInt and TDrawTextInContextInternal which are included into gdi.h
//

#ifndef GDISTRUCTS_H
#define GDISTRUCTS_H

/*
Structure used as a package for GetUnderlineMetrics to pass to the relevant
section of APIExtension.
@internalTechnology
*/
struct TTwoTInt
{
	TInt iTop;
	TInt iBottom;
};
	
/*
Structure used as a package for DrawText to pass to relevant section of 
APIExtension
@internalTechnology
*/
struct TDrawTextInContextInternal
	{
	CGraphicsContext::TTextParameters iParam;
	TPtrC iText;
	TPoint iPosition;
	TRect iBox;
	TInt iBaselineOffset;
	CGraphicsContext::TTextAlign iAlign;
	TInt iMargin;
	TInt iTextWidth;
	TBool iUp;	// For vertical drawing
	};

/*
Structure used as a package for TextWidthInPixels to pass to the relevant
section of APIExtension
@internalTechnology
*/
struct TTextWidthInternal
	{
	CFont::TMeasureTextInput iParam;
	TPtrC iText;
	};

#endif /* GDISTRUCTS_H */