Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreTextGlyphRun.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_TEXT_GLYPH_RUN__
8 #define __HDI_CORE_TEXT_GLYPH_RUN__
9 
10 #include "hdicoreTypes.h"
11 
12 namespace hdi
13 {
14  namespace plugin
15  {
16  class TextGlyphRun;
17  }
18 
19  namespace core
20  {
21  class ArtboardPoint;
22  class Font;
23  class TextCharFeatures;
24  class TextLine;
25 
27  {
28  public:
38  TextGlyphRun();
39 
47  TextGlyphRun(const TextGlyphRun& gr_);
48 
54  virtual ~TextGlyphRun();
55 
61  virtual TextGlyphRun& operator=(const TextGlyphRun& rhs_);
62 
71  virtual bool operator==(const TextGlyphRun& rhs_) const;
72 
81  virtual bool operator!=(const TextGlyphRun& rhs_) const;
82 
94  virtual std::auto_ptr<ATE::IGlyphRun> ateGlyphRun() const;
95 
103  virtual bool isEmpty() const;
104 
112  virtual std::auto_ptr<TextLine> textLine() const;
113 
124  virtual int32_t glyphCount() const;
125 
133  virtual int32_t charCount() const;
134 
142  virtual int32_t originsCount() const;
143 
153  virtual bool origin(const int32_t index_, ArtboardPoint& pt__) const;
154 
162  virtual int32_t glyphIDCount() const;
163 
173  virtual bool glyphID(const int32_t index_, int32_t& id__) const;
174 
187  virtual std::auto_ptr<TextCharFeatures> charFeatures() const;
188 
196  virtual GlyphOrientation glyphOrientation() const;
197 
205  virtual double ascent() const;
206 
214  virtual double descent() const;
215 
223  virtual double tracking() const;
224 
232  virtual double spaceGlyphWidth() const;
233 
241  virtual double distToBaseline() const;
242 
250  virtual double underlinePosition() const;
251 
259  virtual double underlineThickness() const;
260 
268  virtual double minCapHeight() const;
269 
277  virtual double maxCapHeight() const;
278 
287  virtual std::auto_ptr<Font> flattenedFont() const;
288 
302  virtual std::string contents(const std::string& le_ = "\n") const;
303 
304 
305  private:
306  friend plugin::TextGlyphRun* __accessImpl(const TextGlyphRun&);
307  friend TextGlyphRun __accessCtor(const plugin::TextGlyphRun&);
308 
312  plugin::TextGlyphRun* __impl;
313 
319  TextGlyphRun(const plugin::TextGlyphRun&);
320  };
321 
322  typedef std::auto_ptr<TextGlyphRun> TextGlyphRunAP;
323 
324  extern plugin::TextGlyphRun* __accessImpl(const TextGlyphRun&);
325  extern TextGlyphRun __accessCtor(const plugin::TextGlyphRun&);
326  }
327 }
328 
329 #endif
330 // __HDI_CORE_TEXT_CHAR_STYLE__
GlyphOrientation
Describes the orientation of a glyph run.
Definition: hdicoreTypes.h:509
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Definition: hdicoreaiArray.h:12
Definition: hdicoreTextGlyphRun.h:26
Describes a point on the Illustrator artboard.
Definition: hdicoreArtboardPoint.h:28