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