Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 #ifndef FBSGLYPHDATAITERATOR_H
18 #define FBSGLYPHDATAITERATOR_H
22 #include <sgresource/sgimage.h>
24 class CGlyphDataIteratorImpl;
25 class TOpenFontCharMetrics;
28 An iterator class to provide access to glyph image data and metrics,
29 one glyph per iteration.
33 NONSHARABLE_CLASS(RFbsGlyphDataIterator)
36 IMPORT_C RFbsGlyphDataIterator();
37 IMPORT_C TInt Open(CFbsFont& aFont, const TUint* aGlyphCodes, TInt aCount);
39 IMPORT_C void Close();
40 IMPORT_C const RSgImage& Image() const;
41 IMPORT_C const TRect& Rect() const;
42 IMPORT_C const TOpenFontCharMetrics& Metrics() const;
43 IMPORT_C TUint GlyphCode() const;
46 RFbsGlyphDataIterator(const RFbsGlyphDataIterator&);
47 const RFbsGlyphDataIterator& operator =(const RFbsGlyphDataIterator&);
50 CGlyphDataIteratorImpl* iImpl;
53 #endif /* FBSGLYPHDATAITERATOR_H */