1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsdeviceinterface/gdi/inc/gdiplatapi.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,79 @@
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 +//
1.18 +
1.19 +#ifndef __GDIPLATAPI_H__
1.20 +#define __GDIPLATAPI_H__
1.21 +
1.22 +#include <e32base.h>
1.23 +
1.24 +/*
1.25 + * Please note that RFontTable API is officially supported from SymTB10.1.
1.26 + * It is not guaranteed to work in SymTB9.2 or earlier.
1.27 + *
1.28 + * The class keeps the parameter 'aFont', and will use it in Close().
1.29 + * Destructing the CFont object before calling Close() can result in Panic.
1.30 + *
1.31 + * @publishedPartner
1.32 + */
1.33 +class RFontTable
1.34 + {
1.35 +public:
1.36 + IMPORT_C RFontTable();
1.37 + IMPORT_C TInt Open(CFont& aFont, TUint32 aTag);
1.38 + IMPORT_C TInt TableLength() const;
1.39 + IMPORT_C const TUint8* TableContent() const;
1.40 + IMPORT_C void Close();
1.41 +private:
1.42 + TAny* iTableContent;
1.43 + TInt iLength;
1.44 +
1.45 + // need to remember font and table name, to be used in releasing the table
1.46 + const CFont* iFont;
1.47 + TUint32 iTag;
1.48 + };
1.49 +
1.50 +
1.51 +/*
1.52 + * Please note that RGlyphOutlineIterator API is officially supported
1.53 + * from SymTB10.1. It is not guaranteed to work in SymTB9.2 or earlier.
1.54 + *
1.55 + * The class keeps the parameter 'aFont', and will use it in Close().
1.56 + * Destructing the CFont object before calling Close() can result in Panic.
1.57 + *
1.58 + * @publishedPartner
1.59 + */
1.60 +class RGlyphOutlineIterator
1.61 + {
1.62 +public:
1.63 + IMPORT_C RGlyphOutlineIterator();
1.64 + IMPORT_C TInt Open(CFont& aFont, const TUint* aCodes, TInt aCount, TBool aHinted = EFalse);
1.65 + IMPORT_C TInt Next();
1.66 + IMPORT_C const TUint8 *Outline() const;
1.67 + IMPORT_C TInt OutlineLength() const;
1.68 + IMPORT_C void Close();
1.69 +private:
1.70 + TAny** iOutlines;
1.71 + TInt* iLengths;
1.72 + TInt iCursor;
1.73 + TInt iCount;
1.74 +
1.75 + // these information is needed in Close().
1.76 + const CFont* iFont;
1.77 + TUint* iCodes;
1.78 + TBool iHinted;
1.79 + };
1.80 +
1.81 +
1.82 +#endif __GDIPLATAPI_H__