1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsdeviceinterface/gdi/inc/gdistructs.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,101 @@
1.4 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// Header containing the structs TTwoTInt and TDrawTextInContextInternal which are included into gdi.h
1.18 +//
1.19 +
1.20 +#ifndef GDISTRUCTS_H
1.21 +#define GDISTRUCTS_H
1.22 +
1.23 +/*
1.24 +Structure used as a package for GetUnderlineMetrics to pass to the relevant
1.25 +section of APIExtension.
1.26 +@internalTechnology
1.27 +*/
1.28 +struct TTwoTInt
1.29 +{
1.30 + TInt iTop;
1.31 + TInt iBottom;
1.32 +};
1.33 +
1.34 +/*
1.35 +Structure used as a package for DrawText to pass to relevant section of
1.36 +APIExtension
1.37 +@internalTechnology
1.38 +*/
1.39 +struct TDrawTextInContextInternal
1.40 + {
1.41 + CGraphicsContext::TTextParameters iParam;
1.42 + TPtrC iText;
1.43 + TPoint iPosition;
1.44 + TRect iBox;
1.45 + TInt iBaselineOffset;
1.46 + CGraphicsContext::TTextAlign iAlign;
1.47 + TInt iMargin;
1.48 + TInt iTextWidth;
1.49 + TBool iUp; // For vertical drawing
1.50 + };
1.51 +
1.52 +/*
1.53 +Structure used as a package for TextWidthInPixels to pass to the relevant
1.54 +section of APIExtension
1.55 +@internalTechnology
1.56 +*/
1.57 +struct TTextWidthInternal
1.58 + {
1.59 + CFont::TMeasureTextInput iParam;
1.60 + TPtrC iText;
1.61 + };
1.62 +
1.63 +
1.64 +/*
1.65 +Structure used to pass input/output parameters between RFontTable and CFbsFont.
1.66 +@internalTechnology
1.67 +*/
1.68 +class TGetFontTableParam
1.69 + {
1.70 +public:
1.71 + TUint32 iTag;
1.72 + TAny *iContent;
1.73 + TInt iLength;
1.74 + };
1.75 +
1.76 +/*
1.77 +Structure used to pass input/output parameters between RGlyphOutlineIterator and CFbsFont.
1.78 +Used when opening an outline iterator.
1.79 +@internalTechnology
1.80 +*/
1.81 +class TGetGlyphOutlineParam
1.82 + {
1.83 +public:
1.84 + TInt iCount;
1.85 + const TUint *iCodes;
1.86 + TBool iHinted;
1.87 + TAny **iOutlines;
1.88 + TInt *iLengths;
1.89 + };
1.90 +
1.91 +/*
1.92 +Structure used to pass input/output parameters between RGlyphOutlineIterator and CFbsFont.
1.93 +Used when closing an outline iterator.
1.94 +@internalTechnology
1.95 +*/
1.96 +class TReleaseGlyphOutlineParam
1.97 + {
1.98 +public:
1.99 + TInt iCount;
1.100 + const TUint *iCodes;
1.101 + TBool iHinted;
1.102 + };
1.103 +
1.104 +#endif /* GDISTRUCTS_H */