0N/A/*
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A *
0N/A */
0N/A
0N/A/*
0N/A *
0N/A * (C) Copyright IBM Corp. 1998-2005 - All Rights Reserved
0N/A *
0N/A */
0N/A
0N/A#ifndef __GLYPHITERATOR_H
0N/A#define __GLYPHITERATOR_H
0N/A
1693N/A/**
1693N/A * \file
1693N/A * \internal
1693N/A */
1693N/A
0N/A#include "LETypes.h"
0N/A#include "OpenTypeTables.h"
0N/A#include "GlyphDefinitionTables.h"
0N/A
1693N/AU_NAMESPACE_BEGIN
0N/A
0N/Aclass LEGlyphStorage;
0N/Aclass GlyphPositionAdjustments;
0N/A
1693N/Aclass GlyphIterator : public UMemory {
0N/Apublic:
1693N/A GlyphIterator(LEGlyphStorage &theGlyphStorage, GlyphPositionAdjustments *theGlyphPositionAdjustments, le_bool rightToLeft, le_uint16 theLookupFlags,
5980N/A FeatureMask theFeatureMask, const LEReferenceTo<GlyphDefinitionTableHeader> &theGlyphDefinitionTableHeader);
0N/A
0N/A GlyphIterator(GlyphIterator &that);
0N/A
0N/A GlyphIterator(GlyphIterator &that, FeatureMask newFeatureMask);
0N/A
0N/A GlyphIterator(GlyphIterator &that, le_uint16 newLookupFlags);
0N/A
0N/A virtual ~GlyphIterator();
0N/A
0N/A void reset(le_uint16 newLookupFlags, LETag newFeatureTag);
0N/A
0N/A le_bool next(le_uint32 delta = 1);
0N/A le_bool prev(le_uint32 delta = 1);
0N/A le_bool findFeatureTag();
0N/A
0N/A le_bool isRightToLeft() const;
0N/A le_bool ignoresMarks() const;
0N/A
0N/A le_bool baselineIsLogicalEnd() const;
0N/A
0N/A LEGlyphID getCurrGlyphID() const;
0N/A le_int32 getCurrStreamPosition() const;
0N/A
0N/A le_int32 getMarkComponent(le_int32 markPosition) const;
0N/A le_bool findMark2Glyph();
0N/A
0N/A void getCursiveEntryPoint(LEPoint &entryPoint) const;
0N/A void getCursiveExitPoint(LEPoint &exitPoint) const;
0N/A
0N/A void setCurrGlyphID(TTGlyphID glyphID);
0N/A void setCurrStreamPosition(le_int32 position);
0N/A void setCurrGlyphBaseOffset(le_int32 baseOffset);
0N/A void adjustCurrGlyphPositionAdjustment(float xPlacementAdjust, float yPlacementAdjust,
0N/A float xAdvanceAdjust, float yAdvanceAdjust);
0N/A
0N/A void setCurrGlyphPositionAdjustment(float xPlacementAdjust, float yPlacementAdjust,
0N/A float xAdvanceAdjust, float yAdvanceAdjust);
0N/A
3171N/A void clearCursiveEntryPoint();
3171N/A void clearCursiveExitPoint();
0N/A void setCursiveEntryPoint(LEPoint &entryPoint);
0N/A void setCursiveExitPoint(LEPoint &exitPoint);
0N/A void setCursiveGlyph();
0N/A
3171N/A LEGlyphID *insertGlyphs(le_int32 count, LEErrorCode& success);
0N/A le_int32 applyInsertions();
0N/A
0N/Aprivate:
0N/A le_bool filterGlyph(le_uint32 index) const;
3171N/A le_bool hasFeatureTag(le_bool matchGroup) const;
0N/A le_bool nextInternal(le_uint32 delta = 1);
0N/A le_bool prevInternal(le_uint32 delta = 1);
0N/A
0N/A le_int32 direction;
0N/A le_int32 position;
0N/A le_int32 nextLimit;
0N/A le_int32 prevLimit;
0N/A
0N/A LEGlyphStorage &glyphStorage;
0N/A GlyphPositionAdjustments *glyphPositionAdjustments;
0N/A
0N/A le_int32 srcIndex;
0N/A le_int32 destIndex;
0N/A le_uint16 lookupFlags;
0N/A FeatureMask featureMask;
3171N/A le_int32 glyphGroup;
0N/A
5980N/A LEReferenceTo<GlyphClassDefinitionTable> glyphClassDefinitionTable;
5980N/A LEReferenceTo<MarkAttachClassDefinitionTable> markAttachClassDefinitionTable;
0N/A
0N/A GlyphIterator &operator=(const GlyphIterator &other); // forbid copying of this class
0N/A};
0N/A
1693N/AU_NAMESPACE_END
0N/A#endif