summaryrefslogtreecommitdiff
path: root/Build/source/libs/graphite/src/segment/GrPseudoMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/graphite/src/segment/GrPseudoMap.h')
-rw-r--r--Build/source/libs/graphite/src/segment/GrPseudoMap.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/Build/source/libs/graphite/src/segment/GrPseudoMap.h b/Build/source/libs/graphite/src/segment/GrPseudoMap.h
new file mode 100644
index 00000000000..c6fec210808
--- /dev/null
+++ b/Build/source/libs/graphite/src/segment/GrPseudoMap.h
@@ -0,0 +1,48 @@
+/*--------------------------------------------------------------------*//*:Ignore this sentence.
+Copyright (C) 1999, 2001 SIL International. All rights reserved.
+
+Distributable under the terms of either the Common Public License or the
+GNU Lesser General Public License, as specified in the LICENSING.txt file.
+
+File: GrPseudoMap.h
+Responsibility: Sharon Correll
+Last reviewed: Not yet.
+
+Description:
+ The GrPseudoMap class.
+----------------------------------------------------------------------------------------------*/
+#ifdef _MSC_VER
+#pragma once
+#endif
+#ifndef GR_PSEUDOMAP_INCLUDED
+#define GR_PSEUDOMAP_INCLUDED
+
+//:End Ignore
+
+namespace gr
+{
+
+/*----------------------------------------------------------------------------------------------
+ A mapping between a Unicode value and a pseudo-glyph.
+
+ Hungarian: psd
+----------------------------------------------------------------------------------------------*/
+
+class GrPseudoMap
+{
+public:
+ unsigned int Unicode() { return m_nUnicode; }
+ gid16 PseudoGlyph() { return m_chwPseudo; }
+
+ void SetUnicode(int n) { m_nUnicode = n; }
+ void SetPseudoGlyph(gid16 chw) { m_chwPseudo = chw; }
+
+protected:
+ // Instance variables:
+ unsigned int m_nUnicode;
+ gid16 m_chwPseudo;
+};
+
+} // namespace gr
+
+#endif // !GR_PSEUDOMAP_INCLUDED