summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/awt/font/opentype/truetype/VirtualMachine.h
blob: 6193a6d4c93b4b55851ca51d1999525f1ada6f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_awt_font_opentype_truetype_VirtualMachine__
#define __gnu_java_awt_font_opentype_truetype_VirtualMachine__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
        namespace font
        {
          namespace opentype
          {
            namespace truetype
            {
                class VirtualMachine;
                class Zone;
            }
          }
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
      namespace geom
      {
          class AffineTransform;
      }
    }
    namespace nio
    {
        class ByteBuffer;
        class ShortBuffer;
    }
  }
}

class gnu::java::awt::font::opentype::truetype::VirtualMachine : public ::java::lang::Object
{

public: // actually package-private
  VirtualMachine(jint, ::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *, ::java::nio::ByteBuffer *);
private:
  void resetGraphicsState();
  void reloadControlValueTable();
  jint funitsToPixels(jint);
public:
  virtual jboolean setup(jdouble, ::java::awt::geom::AffineTransform *, jboolean);
private:
  void execute(::java::nio::ByteBuffer *, jint);
  void dumpInstruction(::java::nio::ByteBuffer *);
  static jchar getNibble(jint, jint);
  static ::java::lang::String * getHex(jbyte);
  static ::java::lang::String * getHex(jshort);
  static void skipAfter(::java::nio::ByteBuffer *, jint, jint, jint, jint, jboolean);
  static jint getInstructionLength(jint);
  jboolean executeInstruction(::java::nio::ByteBuffer *);
  void setRoundingMode(jint, jint);
  void deltaC(JArray< jint > *, jint, jint, jint);
  ::gnu::java::awt::font::opentype::truetype::Zone * getZone(jint);
  jint getProjection(jint, jint);
  jint getDualProjection(jint, jint);
  jint getProjection(::gnu::java::awt::font::opentype::truetype::Zone *, jint);
  jint getOriginalProjection(::gnu::java::awt::font::opentype::truetype::Zone *, jint);
  void handleISECT(jint, jint, jint, jint, jint);
  static jint muldiv(jint, jint, jint);
  jint getFreeDotProj();
  void movePoint(::gnu::java::awt::font::opentype::truetype::Zone *, jint, jint);
  void dumpVectors();
  void handleIP();
  void handleMDAP(jint, jboolean);
  void handleMIAP(jint, jint, jboolean);
  void handleMIRP(jint, jint, jint);
  jint round(jint, jint);
  static jint nround(jint, jint);
  jboolean isRotated();
  jboolean isStretched();
  jint getPixelsPerEM();
  void setProjectionVector(jshort, jshort);
  void setFreedomVector(jshort, jshort);
  void setDualVector(jshort, jshort);
  jint applyCTM_x(jint, jint);
  jint applyCTM_y(jint, jint);
  static const jboolean PATENTED_HINTING = 0;
  static const jboolean TRACE_EXECUTION = 0;
  static const jshort ONE_214 = 16384;
  JArray< jint > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) storage;
  JArray< jint > * stack;
  jint maxStackElements;
  jint sp;
  JArray< ::java::nio::ByteBuffer * > * fdefBuffer;
  JArray< jint > * fdefEntryPoint;
  ::java::nio::ShortBuffer * controlValueTable;
  JArray< jint > * cvt;
  jint engineCompensation;
  ::java::nio::ByteBuffer * fontProgram;
  ::java::nio::ByteBuffer * preProgram;
  jint numTwilightPoints;
  jint pointSize;
  ::java::awt::geom::AffineTransform * deviceTransform;
  jint scaleX;
  jint scaleY;
  jint shearX;
  jint shearY;
  jboolean antialiased;
  jint cvtCutIn;
  jint deltaBase;
  jint deltaShift;
  jshort freeX;
  jshort freeY;
  jint loop;
  jint minimumDistance;
  jshort projX;
  jshort projY;
  jshort dualX;
  jshort dualY;
  jint rp0;
  jint rp1;
  jint rp2;
  jboolean scanControl;
  jint scanType;
  jint singleWidthValue;
  ::gnu::java::awt::font::opentype::truetype::Zone * zp0;
  ::gnu::java::awt::font::opentype::truetype::Zone * zp1;
  ::gnu::java::awt::font::opentype::truetype::Zone * zp2;
  ::gnu::java::awt::font::opentype::truetype::Zone * twilightZone;
  ::gnu::java::awt::font::opentype::truetype::Zone * glyphZone;
  jboolean executeGlyphInstructions;
  jboolean ignoreCVTProgram;
  jint roundPeriod;
  jint roundPhase;
  jint roundThreshold;
  jint cachedPixelsPerEM;
  jint unitsPerEm;
  static JArray< ::java::lang::String * > * INST_NAME;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_font_opentype_truetype_VirtualMachine__