author | sl |
Tue, 10 Jun 2014 14:32:02 +0200 | |
changeset 1 | 260cb5ec6c19 |
permissions | -rw-r--r-- |
sl@0 | 1 |
// Copyright (c) 1998-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 "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 |
// Header containing the structs TTwoTInt and TDrawTextInContextInternal which are included into gdi.h |
sl@0 | 15 |
// |
sl@0 | 16 |
|
sl@0 | 17 |
#ifndef GDISTRUCTS_H |
sl@0 | 18 |
#define GDISTRUCTS_H |
sl@0 | 19 |
|
sl@0 | 20 |
/* |
sl@0 | 21 |
Structure used as a package for GetUnderlineMetrics to pass to the relevant |
sl@0 | 22 |
section of APIExtension. |
sl@0 | 23 |
@internalTechnology |
sl@0 | 24 |
*/ |
sl@0 | 25 |
struct TTwoTInt |
sl@0 | 26 |
{ |
sl@0 | 27 |
TInt iTop; |
sl@0 | 28 |
TInt iBottom; |
sl@0 | 29 |
}; |
sl@0 | 30 |
|
sl@0 | 31 |
/* |
sl@0 | 32 |
Structure used as a package for DrawText to pass to relevant section of |
sl@0 | 33 |
APIExtension |
sl@0 | 34 |
@internalTechnology |
sl@0 | 35 |
*/ |
sl@0 | 36 |
struct TDrawTextInContextInternal |
sl@0 | 37 |
{ |
sl@0 | 38 |
CGraphicsContext::TTextParameters iParam; |
sl@0 | 39 |
TPtrC iText; |
sl@0 | 40 |
TPoint iPosition; |
sl@0 | 41 |
TRect iBox; |
sl@0 | 42 |
TInt iBaselineOffset; |
sl@0 | 43 |
CGraphicsContext::TTextAlign iAlign; |
sl@0 | 44 |
TInt iMargin; |
sl@0 | 45 |
TInt iTextWidth; |
sl@0 | 46 |
TBool iUp; // For vertical drawing |
sl@0 | 47 |
}; |
sl@0 | 48 |
|
sl@0 | 49 |
/* |
sl@0 | 50 |
Structure used as a package for TextWidthInPixels to pass to the relevant |
sl@0 | 51 |
section of APIExtension |
sl@0 | 52 |
@internalTechnology |
sl@0 | 53 |
*/ |
sl@0 | 54 |
struct TTextWidthInternal |
sl@0 | 55 |
{ |
sl@0 | 56 |
CFont::TMeasureTextInput iParam; |
sl@0 | 57 |
TPtrC iText; |
sl@0 | 58 |
}; |
sl@0 | 59 |
|
sl@0 | 60 |
|
sl@0 | 61 |
/* |
sl@0 | 62 |
Structure used to pass input/output parameters between RFontTable and CFbsFont. |
sl@0 | 63 |
@internalTechnology |
sl@0 | 64 |
*/ |
sl@0 | 65 |
class TGetFontTableParam |
sl@0 | 66 |
{ |
sl@0 | 67 |
public: |
sl@0 | 68 |
TUint32 iTag; |
sl@0 | 69 |
TAny *iContent; |
sl@0 | 70 |
TInt iLength; |
sl@0 | 71 |
}; |
sl@0 | 72 |
|
sl@0 | 73 |
/* |
sl@0 | 74 |
Structure used to pass input/output parameters between RGlyphOutlineIterator and CFbsFont. |
sl@0 | 75 |
Used when opening an outline iterator. |
sl@0 | 76 |
@internalTechnology |
sl@0 | 77 |
*/ |
sl@0 | 78 |
class TGetGlyphOutlineParam |
sl@0 | 79 |
{ |
sl@0 | 80 |
public: |
sl@0 | 81 |
TInt iCount; |
sl@0 | 82 |
const TUint *iCodes; |
sl@0 | 83 |
TBool iHinted; |
sl@0 | 84 |
TAny **iOutlines; |
sl@0 | 85 |
TInt *iLengths; |
sl@0 | 86 |
}; |
sl@0 | 87 |
|
sl@0 | 88 |
/* |
sl@0 | 89 |
Structure used to pass input/output parameters between RGlyphOutlineIterator and CFbsFont. |
sl@0 | 90 |
Used when closing an outline iterator. |
sl@0 | 91 |
@internalTechnology |
sl@0 | 92 |
*/ |
sl@0 | 93 |
class TReleaseGlyphOutlineParam |
sl@0 | 94 |
{ |
sl@0 | 95 |
public: |
sl@0 | 96 |
TInt iCount; |
sl@0 | 97 |
const TUint *iCodes; |
sl@0 | 98 |
TBool iHinted; |
sl@0 | 99 |
}; |
sl@0 | 100 |
|
sl@0 | 101 |
#endif /* GDISTRUCTS_H */ |