os/graphics/fbs/fontandbitmapserver/sfbs/fbsglyphmetricsarray.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) 2009-2010 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 //
    15 
    16 #ifndef FBSGLYPHMETRICSARRAY_H
    17 #define FBSGLYPHMETRICSARRAY_H
    18 
    19 #include <e32def.h>
    20 #include <openfont.h>
    21 #include <fbs.h>
    22 
    23 /**
    24 @publishedPartner
    25 @prototype
    26 */
    27 NONSHARABLE_CLASS(RFbsGlyphMetricsArray)
    28 	{
    29 public:
    30 	IMPORT_C RFbsGlyphMetricsArray();
    31 	IMPORT_C TInt Get(CFbsFont& aFont, const TUint* aGlyphCodes, TInt aCount);
    32 	IMPORT_C void Close();
    33 	IMPORT_C TInt Count() const;
    34 	IMPORT_C const TOpenFontCharMetrics& operator[](TInt aIndex) const;
    35 	
    36 private:
    37 	RFbsGlyphMetricsArray(const RFbsGlyphMetricsArray&);
    38 	const RFbsGlyphMetricsArray& operator =(const RFbsGlyphMetricsArray&);
    39 	TInt SendRecvGlyphMetrics(CFbsFont& aFont, TUint* aArrayIndices, TInt aArrayIndicesCount, RArray<TOpenFontCharMetrics>* aMetrics) const;    
    40 	
    41 private:
    42 	RArray<TOpenFontCharMetrics> iMetrics;
    43 	const TUint* iGlyphCodes;
    44 	TInt iCount;
    45 	};
    46 
    47 #endif /* FBSGLYPHMETRICSARRAY_H */