sl@0: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Header containing the structs TTwoTInt and TDrawTextInContextInternal which are included into gdi.h sl@0: // sl@0: sl@0: #ifndef GDISTRUCTS_H sl@0: #define GDISTRUCTS_H sl@0: sl@0: /* sl@0: Structure used as a package for GetUnderlineMetrics to pass to the relevant sl@0: section of APIExtension. sl@0: @internalTechnology sl@0: */ sl@0: struct TTwoTInt sl@0: { sl@0: TInt iTop; sl@0: TInt iBottom; sl@0: }; sl@0: sl@0: /* sl@0: Structure used as a package for DrawText to pass to relevant section of sl@0: APIExtension sl@0: @internalTechnology sl@0: */ sl@0: struct TDrawTextInContextInternal sl@0: { sl@0: CGraphicsContext::TTextParameters iParam; sl@0: TPtrC iText; sl@0: TPoint iPosition; sl@0: TRect iBox; sl@0: TInt iBaselineOffset; sl@0: CGraphicsContext::TTextAlign iAlign; sl@0: TInt iMargin; sl@0: TInt iTextWidth; sl@0: TBool iUp; // For vertical drawing sl@0: }; sl@0: sl@0: /* sl@0: Structure used as a package for TextWidthInPixels to pass to the relevant sl@0: section of APIExtension sl@0: @internalTechnology sl@0: */ sl@0: struct TTextWidthInternal sl@0: { sl@0: CFont::TMeasureTextInput iParam; sl@0: TPtrC iText; sl@0: }; sl@0: sl@0: sl@0: /* sl@0: Structure used to pass input/output parameters between RFontTable and CFbsFont. sl@0: @internalTechnology sl@0: */ sl@0: class TGetFontTableParam sl@0: { sl@0: public: sl@0: TUint32 iTag; sl@0: TAny *iContent; sl@0: TInt iLength; sl@0: }; sl@0: sl@0: /* sl@0: Structure used to pass input/output parameters between RGlyphOutlineIterator and CFbsFont. sl@0: Used when opening an outline iterator. sl@0: @internalTechnology sl@0: */ sl@0: class TGetGlyphOutlineParam sl@0: { sl@0: public: sl@0: TInt iCount; sl@0: const TUint *iCodes; sl@0: TBool iHinted; sl@0: TAny **iOutlines; sl@0: TInt *iLengths; sl@0: }; sl@0: sl@0: /* sl@0: Structure used to pass input/output parameters between RGlyphOutlineIterator and CFbsFont. sl@0: Used when closing an outline iterator. sl@0: @internalTechnology sl@0: */ sl@0: class TReleaseGlyphOutlineParam sl@0: { sl@0: public: sl@0: TInt iCount; sl@0: const TUint *iCodes; sl@0: TBool iHinted; sl@0: }; sl@0: sl@0: #endif /* GDISTRUCTS_H */