os/graphics/fbs/fontandbitmapserver/sfbs/fbsglyphdataiterator.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 #ifndef FBSGLYPHDATAITERATOR_H
    18 #define FBSGLYPHDATAITERATOR_H
    19 
    20 #include <e32def.h>
    21 #include <fbs.h>
    22 #include <sgresource/sgimage.h>
    23 
    24 class CGlyphDataIteratorImpl;
    25 class TOpenFontCharMetrics;
    26 
    27 /**
    28 An iterator class to provide access to glyph image data and metrics, 
    29 one glyph per iteration.
    30 @publishedPartner
    31 @prototype
    32 */
    33 NONSHARABLE_CLASS(RFbsGlyphDataIterator)
    34 	{
    35 public:
    36 	IMPORT_C RFbsGlyphDataIterator();
    37 	IMPORT_C TInt Open(CFbsFont& aFont, const TUint* aGlyphCodes, TInt aCount);
    38 	IMPORT_C TInt Next();
    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;
    44 	
    45 private:
    46 	RFbsGlyphDataIterator(const RFbsGlyphDataIterator&);
    47 	const RFbsGlyphDataIterator& operator =(const RFbsGlyphDataIterator&);
    48 	
    49 private:
    50     CGlyphDataIteratorImpl* iImpl;
    51 	};
    52 
    53 #endif /* FBSGLYPHDATAITERATOR_H */