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