fbs/fontandbitmapserver/sfbs/fbsglyphdataiterator.h
author hgs
Fri, 16 Jul 2010 11:45:55 +0300
changeset 116 171fae344dd4
permissions -rw-r--r--
201026_3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
116
171fae344dd4 201026_3
hgs
parents:
diff changeset
     1
// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
171fae344dd4 201026_3
hgs
parents:
diff changeset
     2
// All rights reserved.
171fae344dd4 201026_3
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
171fae344dd4 201026_3
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
171fae344dd4 201026_3
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
171fae344dd4 201026_3
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
171fae344dd4 201026_3
hgs
parents:
diff changeset
     7
//
171fae344dd4 201026_3
hgs
parents:
diff changeset
     8
// Initial Contributors:
171fae344dd4 201026_3
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
171fae344dd4 201026_3
hgs
parents:
diff changeset
    10
//
171fae344dd4 201026_3
hgs
parents:
diff changeset
    11
// Contributors:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    12
//
171fae344dd4 201026_3
hgs
parents:
diff changeset
    13
// Description:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    14
//
171fae344dd4 201026_3
hgs
parents:
diff changeset
    15
171fae344dd4 201026_3
hgs
parents:
diff changeset
    16
171fae344dd4 201026_3
hgs
parents:
diff changeset
    17
#ifndef FBSGLYPHDATAITERATOR_H
171fae344dd4 201026_3
hgs
parents:
diff changeset
    18
#define FBSGLYPHDATAITERATOR_H
171fae344dd4 201026_3
hgs
parents:
diff changeset
    19
171fae344dd4 201026_3
hgs
parents:
diff changeset
    20
#include <e32def.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    21
#include <fbs.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    22
#include <sgresource/sgimage.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    23
171fae344dd4 201026_3
hgs
parents:
diff changeset
    24
class CGlyphDataIteratorImpl;
171fae344dd4 201026_3
hgs
parents:
diff changeset
    25
class TOpenFontCharMetrics;
171fae344dd4 201026_3
hgs
parents:
diff changeset
    26
171fae344dd4 201026_3
hgs
parents:
diff changeset
    27
/**
171fae344dd4 201026_3
hgs
parents:
diff changeset
    28
An iterator class to provide access to glyph image data and metrics, 
171fae344dd4 201026_3
hgs
parents:
diff changeset
    29
one glyph per iteration.
171fae344dd4 201026_3
hgs
parents:
diff changeset
    30
@publishedPartner
171fae344dd4 201026_3
hgs
parents:
diff changeset
    31
@prototype
171fae344dd4 201026_3
hgs
parents:
diff changeset
    32
*/
171fae344dd4 201026_3
hgs
parents:
diff changeset
    33
NONSHARABLE_CLASS(RFbsGlyphDataIterator)
171fae344dd4 201026_3
hgs
parents:
diff changeset
    34
	{
171fae344dd4 201026_3
hgs
parents:
diff changeset
    35
public:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    36
	IMPORT_C RFbsGlyphDataIterator();
171fae344dd4 201026_3
hgs
parents:
diff changeset
    37
	IMPORT_C TInt Open(CFbsFont& aFont, const TUint* aGlyphCodes, TInt aCount);
171fae344dd4 201026_3
hgs
parents:
diff changeset
    38
	IMPORT_C TInt Next();
171fae344dd4 201026_3
hgs
parents:
diff changeset
    39
	IMPORT_C void Close();
171fae344dd4 201026_3
hgs
parents:
diff changeset
    40
	IMPORT_C const RSgImage& Image() const;
171fae344dd4 201026_3
hgs
parents:
diff changeset
    41
	IMPORT_C const TRect& Rect() const;
171fae344dd4 201026_3
hgs
parents:
diff changeset
    42
	IMPORT_C const TOpenFontCharMetrics& Metrics() const;
171fae344dd4 201026_3
hgs
parents:
diff changeset
    43
	IMPORT_C TUint GlyphCode() const;
171fae344dd4 201026_3
hgs
parents:
diff changeset
    44
	
171fae344dd4 201026_3
hgs
parents:
diff changeset
    45
private:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    46
	RFbsGlyphDataIterator(const RFbsGlyphDataIterator&);
171fae344dd4 201026_3
hgs
parents:
diff changeset
    47
	const RFbsGlyphDataIterator& operator =(const RFbsGlyphDataIterator&);
171fae344dd4 201026_3
hgs
parents:
diff changeset
    48
	
171fae344dd4 201026_3
hgs
parents:
diff changeset
    49
private:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    50
    CGlyphDataIteratorImpl* iImpl;
171fae344dd4 201026_3
hgs
parents:
diff changeset
    51
	};
171fae344dd4 201026_3
hgs
parents:
diff changeset
    52
171fae344dd4 201026_3
hgs
parents:
diff changeset
    53
#endif /* FBSGLYPHDATAITERATOR_H */