os/graphics/fbs/fontandbitmapserver/sfbs/fbsglyphmetricsarray.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/fbs/fontandbitmapserver/sfbs/fbsglyphmetricsarray.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +// Copyright (c) 2009-2010 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 FBSGLYPHMETRICSARRAY_H
    1.20 +#define FBSGLYPHMETRICSARRAY_H
    1.21 +
    1.22 +#include <e32def.h>
    1.23 +#include <openfont.h>
    1.24 +#include <fbs.h>
    1.25 +
    1.26 +/**
    1.27 +@publishedPartner
    1.28 +@prototype
    1.29 +*/
    1.30 +NONSHARABLE_CLASS(RFbsGlyphMetricsArray)
    1.31 +	{
    1.32 +public:
    1.33 +	IMPORT_C RFbsGlyphMetricsArray();
    1.34 +	IMPORT_C TInt Get(CFbsFont& aFont, const TUint* aGlyphCodes, TInt aCount);
    1.35 +	IMPORT_C void Close();
    1.36 +	IMPORT_C TInt Count() const;
    1.37 +	IMPORT_C const TOpenFontCharMetrics& operator[](TInt aIndex) const;
    1.38 +	
    1.39 +private:
    1.40 +	RFbsGlyphMetricsArray(const RFbsGlyphMetricsArray&);
    1.41 +	const RFbsGlyphMetricsArray& operator =(const RFbsGlyphMetricsArray&);
    1.42 +	TInt SendRecvGlyphMetrics(CFbsFont& aFont, TUint* aArrayIndices, TInt aArrayIndicesCount, RArray<TOpenFontCharMetrics>* aMetrics) const;    
    1.43 +	
    1.44 +private:
    1.45 +	RArray<TOpenFontCharMetrics> iMetrics;
    1.46 +	const TUint* iGlyphCodes;
    1.47 +	TInt iCount;
    1.48 +	};
    1.49 +
    1.50 +#endif /* FBSGLYPHMETRICSARRAY_H */