w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

graphite2::Segment Class Reference

#include <Segment.h>

Inheritance diagram for graphite2::Segment:
[legend]
Collaboration diagram for graphite2::Segment:
[legend]

Public Types

enum  { SEG_INITCOLLISIONS = 1 , SEG_HASCOLLISIONS = 2 }
 
enum  { SEG_INITCOLLISIONS = 1 , SEG_HASCOLLISIONS = 2 }
 

Public Member Functions

size_t slotCount () const
 
void extendLength (ptrdiff_t num)
 
Position advance () const
 
bool runGraphite ()
 
void chooseSilf (uint32 script)
 
const Silfsilf () const
 
size_t charInfoCount () const
 
const CharInfocharinfo (unsigned int index) const
 
CharInfocharinfo (unsigned int index)
 
 Segment (size_t numchars, const Face *face, uint32 script, int dir)
 
 ~Segment ()
 
uint8 flags () const
 
void flags (uint8 f)
 
Slotfirst ()
 
void first (Slot *p)
 
Slotlast ()
 
void last (Slot *p)
 
void appendSlot (int i, int cid, int gid, int fid, size_t coffset)
 
SlotnewSlot ()
 
void freeSlot (Slot *)
 
SlotJustifynewJustify ()
 
void freeJustify (SlotJustify *aJustify)
 
Position positionSlots (const Font *font=0, Slot *first=0, Slot *last=0, bool isRtl=false, bool isFinal=true)
 
void associateChars (int offset, size_t num)
 
void linkClusters (Slot *first, Slot *last)
 
uint16 getClassGlyph (uint16 cid, uint16 offset) const
 
uint16 findClassIndex (uint16 cid, uint16 gid) const
 
int addFeatures (const Features &feats)
 
uint32 getFeature (int index, uint8 findex) const
 
void setFeature (int index, uint8 findex, uint32 val)
 
int8 dir () const
 
void dir (int8 val)
 
bool currdir () const
 
uint8 passBits () const
 
void mergePassBits (const uint8 val)
 
int16 glyphAttr (uint16 gid, uint16 gattr) const
 
int32 getGlyphMetric (Slot *iSlot, uint8 metric, uint8 attrLevel, bool rtl) const
 
float glyphAdvance (uint16 gid) const
 
const RecttheGlyphBBoxTemporary (uint16 gid) const
 
SlotfindRoot (Slot *is) const
 
int numAttrs () const
 
int defaultOriginal () const
 
const FacegetFace () const
 
const FeaturesgetFeatures (unsigned int)
 
void bidiPass (int paradir, uint8 aMirror)
 
int8 getSlotBidiClass (Slot *s) const
 
void doMirror (uint16 aMirror)
 
SlotaddLineEnd (Slot *nSlot)
 
void delLineEnd (Slot *s)
 
bool hasJustification () const
 
void reverseSlots ()
 
bool isWhitespace (const int cid) const
 
bool hasCollisionInfo () const
 
SlotCollisioncollisionInfo (const Slot *s) const
 
bool read_text (const Face *face, const Features *pFeats, gr_encform enc, const void *pStart, size_t nChars)
 
void finalise (const Font *font, bool reverse=false)
 
float justify (Slot *pSlot, const Font *font, float width, enum justFlags flags, Slot *pFirst, Slot *pLast)
 
bool initCollisions ()
 
size_t slotCount () const
 
void extendLength (ptrdiff_t num)
 
Position advance () const
 
bool runGraphite ()
 
void chooseSilf (uint32 script)
 
const Silfsilf () const
 
size_t charInfoCount () const
 
const CharInfocharinfo (unsigned int index) const
 
CharInfocharinfo (unsigned int index)
 
 Segment (size_t numchars, const Face *face, uint32 script, int dir)
 
 ~Segment ()
 
uint8 flags () const
 
void flags (uint8 f)
 
Slotfirst ()
 
void first (Slot *p)
 
Slotlast ()
 
void last (Slot *p)
 
void appendSlot (int i, int cid, int gid, int fid, size_t coffset)
 
SlotnewSlot ()
 
void freeSlot (Slot *)
 
SlotJustifynewJustify ()
 
void freeJustify (SlotJustify *aJustify)
 
Position positionSlots (const Font *font=0, Slot *first=0, Slot *last=0, bool isRtl=false, bool isFinal=true)
 
void associateChars (int offset, size_t num)
 
void linkClusters (Slot *first, Slot *last)
 
uint16 getClassGlyph (uint16 cid, uint16 offset) const
 
uint16 findClassIndex (uint16 cid, uint16 gid) const
 
int addFeatures (const Features &feats)
 
uint32 getFeature (int index, uint8 findex) const
 
void setFeature (int index, uint8 findex, uint32 val)
 
int8 dir () const
 
void dir (int8 val)
 
bool currdir () const
 
uint8 passBits () const
 
void mergePassBits (const uint8 val)
 
int16 glyphAttr (uint16 gid, uint16 gattr) const
 
int32 getGlyphMetric (Slot *iSlot, uint8 metric, uint8 attrLevel, bool rtl) const
 
float glyphAdvance (uint16 gid) const
 
const RecttheGlyphBBoxTemporary (uint16 gid) const
 
SlotfindRoot (Slot *is) const
 
int numAttrs () const
 
int defaultOriginal () const
 
const FacegetFace () const
 
const FeaturesgetFeatures (unsigned int)
 
void bidiPass (int paradir, uint8 aMirror)
 
int8 getSlotBidiClass (Slot *s) const
 
void doMirror (uint16 aMirror)
 
SlotaddLineEnd (Slot *nSlot)
 
void delLineEnd (Slot *s)
 
bool hasJustification () const
 
void reverseSlots ()
 
bool isWhitespace (const int cid) const
 
bool hasCollisionInfo () const
 
SlotCollisioncollisionInfo (const Slot *s) const
 
bool read_text (const Face *face, const Features *pFeats, gr_encform enc, const void *pStart, size_t nChars)
 
void finalise (const Font *font, bool reverse=false)
 
float justify (Slot *pSlot, const Font *font, float width, enum justFlags flags, Slot *pFirst, Slot *pLast)
 
bool initCollisions ()
 

Private Member Functions

 Segment (const Segment &)
 
Segmentoperator= (const Segment &)
 
 Segment (const Segment &)
 
Segmentoperator= (const Segment &)
 

Private Attributes

Position m_advance
 
SlotRope m_slots
 
AttributeRope m_userAttrs
 
JustifyRope m_justifies
 
FeatureList m_feats
 
Slotm_freeSlots
 
SlotJustifym_freeJustifies
 
CharInfom_charinfo
 
SlotCollisionm_collisions
 
const Facem_face
 
const Silfm_silf
 
Slotm_first
 
Slotm_last
 
size_t m_bufSize
 
size_t m_numGlyphs
 
size_t m_numCharinfo
 
int m_defaultOriginal
 
int8 m_dir
 
uint8 m_flags
 
uint8 m_passBits
 

Detailed Description

Definition at line 78 of file Segment.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SEG_INITCOLLISIONS 
SEG_HASCOLLISIONS 

Definition at line 86 of file Segment.h.

◆ anonymous enum

anonymous enum
Enumerator
SEG_INITCOLLISIONS 
SEG_HASCOLLISIONS 

Definition at line 86 of file Segment.h.

Constructor & Destructor Documentation

◆ Segment() [1/4]

graphite2::Segment::Segment ( const Segment )
private

◆ Segment() [2/4]

Segment::Segment ( size_t  numchars,
const Face face,
uint32  script,
int  dir 
)

Definition at line 45 of file Segment.cpp.

References freeSlot(), graphite2::log_binary(), m_bufSize, and newSlot().

◆ ~Segment() [1/2]

Segment::~Segment ( )

◆ Segment() [3/4]

graphite2::Segment::Segment ( const Segment )
private

◆ Segment() [4/4]

graphite2::Segment::Segment ( size_t  numchars,
const Face face,
uint32  script,
int  dir 
)

◆ ~Segment() [2/2]

graphite2::Segment::~Segment ( )

Member Function Documentation

◆ addFeatures() [1/2]

int graphite2::Segment::addFeatures ( const Features feats)
inline

Definition at line 119 of file Segment.h.

References int(), m_feats, graphite2::Vector< T >::push_back(), and graphite2::Vector< T >::size().

Referenced by read_text().

◆ addFeatures() [2/2]

int graphite2::Segment::addFeatures ( const Features feats)
inline

◆ addLineEnd() [1/2]

◆ addLineEnd() [2/2]

Slot* graphite2::Segment::addLineEnd ( Slot nSlot)

◆ advance() [1/2]

Position graphite2::Segment::advance ( ) const
inline

Definition at line 93 of file Segment.h.

References m_advance.

Referenced by graphite2::Pass::dumpRuleEventOutput(), gr_seg_advance_X(), and gr_seg_advance_Y().

◆ advance() [2/2]

Position graphite2::Segment::advance ( ) const
inline

Definition at line 93 of file Segment.h.

References m_advance.

◆ appendSlot() [1/2]

◆ appendSlot() [2/2]

void graphite2::Segment::appendSlot ( int  i,
int  cid,
int  gid,
int  fid,
size_t  coffset 
)

◆ associateChars() [1/2]

void Segment::associateChars ( int  offset,
size_t  num 
)

◆ associateChars() [2/2]

void graphite2::Segment::associateChars ( int  offset,
size_t  num 
)

◆ bidiPass() [1/2]

void graphite2::Segment::bidiPass ( int  paradir,
uint8  aMirror 
)

◆ bidiPass() [2/2]

void graphite2::Segment::bidiPass ( int  paradir,
uint8  aMirror 
)

◆ charinfo() [1/4]

CharInfo* graphite2::Segment::charinfo ( unsigned int  index)
inline

Definition at line 99 of file Segment.h.

References index, m_charinfo, m_numCharinfo, and NULL.

◆ charinfo() [2/4]

CharInfo* graphite2::Segment::charinfo ( unsigned int  index)
inline

Definition at line 99 of file Segment.h.

References index, m_charinfo, m_numCharinfo, and NULL.

◆ charinfo() [3/4]

const CharInfo* graphite2::Segment::charinfo ( unsigned int  index) const
inline

Definition at line 98 of file Segment.h.

References index, m_charinfo, m_numCharinfo, and NULL.

Referenced by associateChars(), gr_seg_cinfo(), and justify().

◆ charinfo() [4/4]

const CharInfo* graphite2::Segment::charinfo ( unsigned int  index) const
inline

Definition at line 98 of file Segment.h.

References index, m_charinfo, m_numCharinfo, and NULL.

◆ charInfoCount() [1/2]

size_t graphite2::Segment::charInfoCount ( ) const
inline

Definition at line 97 of file Segment.h.

References m_numCharinfo.

Referenced by gr_seg_n_cinfo().

◆ charInfoCount() [2/2]

size_t graphite2::Segment::charInfoCount ( ) const
inline

Definition at line 97 of file Segment.h.

References m_numCharinfo.

◆ chooseSilf() [1/2]

void graphite2::Segment::chooseSilf ( uint32  script)
inline

Definition at line 95 of file Segment.h.

References graphite2::Face::chooseSilf(), m_face, m_silf, and script.

◆ chooseSilf() [2/2]

void graphite2::Segment::chooseSilf ( uint32  script)
inline

Definition at line 95 of file Segment.h.

References graphite2::Face::chooseSilf(), m_face, m_silf, and script.

◆ collisionInfo() [1/2]

SlotCollision* graphite2::Segment::collisionInfo ( const Slot s) const
inline

Definition at line 152 of file Segment.h.

References m_collisions, and s.

Referenced by initCollisions().

◆ collisionInfo() [2/2]

SlotCollision* graphite2::Segment::collisionInfo ( const Slot s) const
inline

Definition at line 152 of file Segment.h.

References m_collisions, and s.

◆ currdir() [1/2]

bool graphite2::Segment::currdir ( ) const
inline

Definition at line 130 of file Segment.h.

References m_dir.

Referenced by graphite2::Pass::dumpRuleEventOutput(), finalise(), and positionSlots().

◆ currdir() [2/2]

bool graphite2::Segment::currdir ( ) const
inline

Definition at line 130 of file Segment.h.

References m_dir.

◆ defaultOriginal() [1/2]

int graphite2::Segment::defaultOriginal ( ) const
inline

Definition at line 139 of file Segment.h.

References m_defaultOriginal.

◆ defaultOriginal() [2/2]

int graphite2::Segment::defaultOriginal ( ) const
inline

Definition at line 139 of file Segment.h.

References m_defaultOriginal.

◆ delLineEnd() [1/2]

void Segment::delLineEnd ( Slot s)

Definition at line 270 of file Justifier.cpp.

References freeSlot(), NULL, graphite2::Slot::prev(), and s.

Referenced by justify().

◆ delLineEnd() [2/2]

void graphite2::Segment::delLineEnd ( Slot s)

◆ dir() [1/4]

int8 graphite2::Segment::dir ( ) const
inline

◆ dir() [2/4]

int8 graphite2::Segment::dir ( ) const
inline

◆ dir() [3/4]

void graphite2::Segment::dir ( int8  val)
inline

◆ dir() [4/4]

void graphite2::Segment::dir ( int8  val)
inline

◆ doMirror() [1/2]

void Segment::doMirror ( uint16  aMirror)

Definition at line 401 of file Segment.cpp.

References dir(), g, glyphAttr(), m_first, and s.

◆ doMirror() [2/2]

void graphite2::Segment::doMirror ( uint16  aMirror)

◆ extendLength() [1/2]

void graphite2::Segment::extendLength ( ptrdiff_t  num)
inline

Definition at line 92 of file Segment.h.

References m_numGlyphs, and num.

◆ extendLength() [2/2]

void graphite2::Segment::extendLength ( ptrdiff_t  num)
inline

Definition at line 92 of file Segment.h.

References m_numGlyphs, and num.

◆ finalise() [1/2]

void Segment::finalise ( const Font font,
bool  reverse = false 
)
inline

◆ finalise() [2/2]

void graphite2::Segment::finalise ( const Font font,
bool  reverse = false 
)

◆ findClassIndex() [1/2]

uint16 graphite2::Segment::findClassIndex ( uint16  cid,
uint16  gid 
) const
inline

Definition at line 118 of file Segment.h.

References graphite2::Silf::findClassIndex(), and m_silf.

◆ findClassIndex() [2/2]

uint16 graphite2::Segment::findClassIndex ( uint16  cid,
uint16  gid 
) const
inline

Definition at line 118 of file Segment.h.

References graphite2::Silf::findClassIndex(), and m_silf.

◆ findRoot() [1/2]

Slot* graphite2::Segment::findRoot ( Slot is) const
inline

Definition at line 137 of file Segment.h.

References findRoot(), and is.

Referenced by findRoot(), and getGlyphMetric().

◆ findRoot() [2/2]

Slot* graphite2::Segment::findRoot ( Slot is) const
inline

Definition at line 137 of file Segment.h.

References findRoot(), and is.

Referenced by findRoot().

◆ first() [1/4]

Slot* graphite2::Segment::first ( )
inline

Definition at line 105 of file Segment.h.

References m_first.

Referenced by gr_seg_first_slot(), and output_slot().

◆ first() [2/4]

Slot* graphite2::Segment::first ( void  )
inline

Definition at line 105 of file Segment.h.

References m_first.

◆ first() [3/4]

void graphite2::Segment::first ( Slot p)
inline

Definition at line 106 of file Segment.h.

References m_first, and p.

◆ first() [4/4]

void graphite2::Segment::first ( Slot p)
inline

Definition at line 106 of file Segment.h.

References m_first, and p.

◆ flags() [1/4]

uint8 graphite2::Segment::flags ( ) const
inline

Definition at line 103 of file Segment.h.

References m_flags.

Referenced by justify().

◆ flags() [2/4]

uint8 graphite2::Segment::flags ( ) const
inline

Definition at line 103 of file Segment.h.

References m_flags.

◆ flags() [3/4]

void graphite2::Segment::flags ( uint8  f)
inline

Definition at line 104 of file Segment.h.

References f, and m_flags.

◆ flags() [4/4]

void graphite2::Segment::flags ( uint8  f)
inline

Definition at line 104 of file Segment.h.

References f, and m_flags.

◆ freeJustify() [1/2]

◆ freeJustify() [2/2]

void graphite2::Segment::freeJustify ( SlotJustify aJustify)

◆ freeSlot() [1/2]

◆ freeSlot() [2/2]

void graphite2::Segment::freeSlot ( Slot )

◆ getClassGlyph() [1/2]

uint16 graphite2::Segment::getClassGlyph ( uint16  cid,
uint16  offset 
) const
inline

Definition at line 117 of file Segment.h.

References graphite2::Silf::getClassGlyph(), m_silf, and offset.

◆ getClassGlyph() [2/2]

uint16 graphite2::Segment::getClassGlyph ( uint16  cid,
uint16  offset 
) const
inline

Definition at line 117 of file Segment.h.

References graphite2::Silf::getClassGlyph(), m_silf, and offset.

◆ getFace() [1/2]

const Face* graphite2::Segment::getFace ( ) const
inline

Definition at line 140 of file Segment.h.

References m_face.

◆ getFace() [2/2]

const Face* graphite2::Segment::getFace ( ) const
inline

Definition at line 140 of file Segment.h.

References m_face.

◆ getFeature() [1/2]

uint32 graphite2::Segment::getFeature ( int  index,
uint8  findex 
) const
inline

◆ getFeature() [2/2]

uint32 graphite2::Segment::getFeature ( int  index,
uint8  findex 
) const
inline

◆ getFeatures() [1/2]

const Features& graphite2::Segment::getFeatures ( unsigned int  )
inline

Definition at line 141 of file Segment.h.

References assert(), m_feats, and graphite2::Vector< T >::size().

◆ getFeatures() [2/2]

const Features& graphite2::Segment::getFeatures ( unsigned int  )
inline

Definition at line 141 of file Segment.h.

References assert(), m_feats, and graphite2::Vector< T >::size().

◆ getGlyphMetric() [1/2]

int32 Segment::getGlyphMetric ( Slot iSlot,
uint8  metric,
uint8  attrLevel,
bool  rtl 
) const
inline

◆ getGlyphMetric() [2/2]

int32 graphite2::Segment::getGlyphMetric ( Slot iSlot,
uint8  metric,
uint8  attrLevel,
bool  rtl 
) const

◆ getSlotBidiClass() [1/2]

int8 Segment::getSlotBidiClass ( Slot s) const
inline

Definition at line 185 of file Segment.h.

References graphite2::Silf::aBidi(), glyphAttr(), m_silf, res, and s.

Referenced by reverseSlots().

◆ getSlotBidiClass() [2/2]

int8 graphite2::Segment::getSlotBidiClass ( Slot s) const

◆ glyphAdvance() [1/2]

float graphite2::Segment::glyphAdvance ( uint16  gid) const
inline

◆ glyphAdvance() [2/2]

float graphite2::Segment::glyphAdvance ( uint16  gid) const
inline

◆ glyphAttr() [1/2]

int16 graphite2::Segment::glyphAttr ( uint16  gid,
uint16  gattr 
) const
inline

Definition at line 133 of file Segment.h.

References graphite2::Face::glyphs(), graphite2::GlyphCache::glyphSafe(), m_face, and p.

Referenced by doMirror(), and getSlotBidiClass().

◆ glyphAttr() [2/2]

int16 graphite2::Segment::glyphAttr ( uint16  gid,
uint16  gattr 
) const
inline

Definition at line 133 of file Segment.h.

References graphite2::Face::glyphs(), graphite2::GlyphCache::glyphSafe(), m_face, and p.

◆ hasCollisionInfo() [1/2]

bool graphite2::Segment::hasCollisionInfo ( ) const
inline

Definition at line 151 of file Segment.h.

References m_collisions, m_flags, and SEG_HASCOLLISIONS.

◆ hasCollisionInfo() [2/2]

bool graphite2::Segment::hasCollisionInfo ( ) const
inline

Definition at line 151 of file Segment.h.

References m_collisions, m_flags, and SEG_HASCOLLISIONS.

◆ hasJustification() [1/2]

bool graphite2::Segment::hasJustification ( ) const
inline

Definition at line 147 of file Segment.h.

References m_justifies, and graphite2::Vector< T >::size().

◆ hasJustification() [2/2]

bool graphite2::Segment::hasJustification ( ) const
inline

Definition at line 147 of file Segment.h.

References m_justifies, and graphite2::Vector< T >::size().

◆ initCollisions() [1/2]

bool Segment::initCollisions ( )

Definition at line 412 of file Segment.cpp.

References collisionInfo(), m_collisions, m_first, new(), p, and slotCount().

◆ initCollisions() [2/2]

bool graphite2::Segment::initCollisions ( )

◆ isWhitespace() [1/2]

bool Segment::isWhitespace ( const int  cid) const
inline

Definition at line 218 of file Segment.h.

Referenced by justify().

◆ isWhitespace() [2/2]

bool graphite2::Segment::isWhitespace ( const int  cid) const

◆ justify() [1/2]

◆ justify() [2/2]

float graphite2::Segment::justify ( Slot pSlot,
const Font font,
float  width,
enum justFlags  flags,
Slot pFirst,
Slot pLast 
)

◆ last() [1/4]

Slot* graphite2::Segment::last ( )
inline

Definition at line 107 of file Segment.h.

References m_last.

Referenced by gr_seg_last_slot(), input_slot(), and justify().

◆ last() [2/4]

Slot* graphite2::Segment::last ( void  )
inline

Definition at line 107 of file Segment.h.

References m_last.

◆ last() [3/4]

void graphite2::Segment::last ( Slot p)
inline

Definition at line 108 of file Segment.h.

References m_last, and p.

◆ last() [4/4]

void graphite2::Segment::last ( Slot p)
inline

Definition at line 108 of file Segment.h.

References m_last, and p.

◆ linkClusters() [1/2]

void Segment::linkClusters ( Slot first,
Slot last 
)

Definition at line 259 of file Segment.cpp.

References end, m_dir, s, and graphite2::Slot::sibling().

Referenced by finalise().

◆ linkClusters() [2/2]

void graphite2::Segment::linkClusters ( Slot first,
Slot last 
)

◆ mergePassBits() [1/2]

void graphite2::Segment::mergePassBits ( const uint8  val)
inline

Definition at line 132 of file Segment.h.

References m_passBits, and val.

◆ mergePassBits() [2/2]

void graphite2::Segment::mergePassBits ( const uint8  val)
inline

Definition at line 132 of file Segment.h.

References m_passBits, and val.

◆ newJustify() [1/2]

◆ newJustify() [2/2]

SlotJustify* graphite2::Segment::newJustify ( )

◆ newSlot() [1/2]

◆ newSlot() [2/2]

Slot* graphite2::Segment::newSlot ( )

◆ numAttrs() [1/2]

int graphite2::Segment::numAttrs ( ) const
inline

Definition at line 138 of file Segment.h.

References m_silf, and graphite2::Silf::numUser().

◆ numAttrs() [2/2]

int graphite2::Segment::numAttrs ( ) const
inline

Definition at line 138 of file Segment.h.

References m_silf, and graphite2::Silf::numUser().

◆ operator=() [1/2]

Segment& graphite2::Segment::operator= ( const Segment )
private

◆ operator=() [2/2]

Segment& graphite2::Segment::operator= ( const Segment )
private

◆ passBits() [1/2]

uint8 graphite2::Segment::passBits ( ) const
inline

Definition at line 131 of file Segment.h.

References m_passBits.

◆ passBits() [2/2]

uint8 graphite2::Segment::passBits ( ) const
inline

Definition at line 131 of file Segment.h.

References m_passBits.

◆ positionSlots() [1/2]

Position Segment::positionSlots ( const Font font = 0,
Slot first = 0,
Slot last = 0,
bool  isRtl = false,
bool  isFinal = true 
)

◆ positionSlots() [2/2]

Position graphite2::Segment::positionSlots ( const Font font = 0,
Slot first = 0,
Slot last = 0,
bool  isRtl = false,
bool  isFinal = true 
)

◆ read_text() [1/2]

bool Segment::read_text ( const Face face,
const Features pFeats,
gr_encform  enc,
const void pStart,
size_t  nChars 
)

Definition at line 385 of file Segment.cpp.

References addFeatures(), assert(), face, gr_utf16, gr_utf32, gr_utf8, m_charinfo, and process_utf_data().

◆ read_text() [2/2]

bool graphite2::Segment::read_text ( const Face face,
const Features pFeats,
gr_encform  enc,
const void pStart,
size_t  nChars 
)

◆ reverseSlots() [1/2]

void Segment::reverseSlots ( )

Definition at line 205 of file Segment.cpp.

References curr, d, getSlotBidiClass(), m_dir, m_first, m_last, graphite2::Slot::next(), out, p, and t.

Referenced by finalise(), justify(), and positionSlots().

◆ reverseSlots() [2/2]

void graphite2::Segment::reverseSlots ( )

◆ runGraphite() [1/2]

bool graphite2::Segment::runGraphite ( )
inline

Definition at line 94 of file Segment.h.

References m_face, m_silf, and graphite2::Face::runGraphite().

◆ runGraphite() [2/2]

bool graphite2::Segment::runGraphite ( )
inline

Definition at line 94 of file Segment.h.

References m_face, m_silf, and graphite2::Face::runGraphite().

◆ setFeature() [1/2]

◆ setFeature() [2/2]

◆ silf() [1/2]

const Silf* graphite2::Segment::silf ( ) const
inline

Definition at line 96 of file Segment.h.

References m_silf.

Referenced by addLineEnd(), and justify().

◆ silf() [2/2]

const Silf* graphite2::Segment::silf ( ) const
inline

Definition at line 96 of file Segment.h.

References m_silf.

◆ slotCount() [1/2]

size_t graphite2::Segment::slotCount ( ) const
inline

Definition at line 91 of file Segment.h.

References m_numGlyphs.

Referenced by gr_seg_n_slots(), and initCollisions().

◆ slotCount() [2/2]

size_t graphite2::Segment::slotCount ( ) const
inline

Definition at line 91 of file Segment.h.

References m_numGlyphs.

◆ theGlyphBBoxTemporary() [1/2]

const Rect& graphite2::Segment::theGlyphBBoxTemporary ( uint16  gid) const
inline

◆ theGlyphBBoxTemporary() [2/2]

const Rect& graphite2::Segment::theGlyphBBoxTemporary ( uint16  gid) const
inline

Member Data Documentation

◆ m_advance

Position Segment::m_advance
private

Definition at line 162 of file Segment.h.

Referenced by advance(), and finalise().

◆ m_bufSize

size_t Segment::m_bufSize
private

Definition at line 175 of file Segment.h.

Referenced by newJustify(), newSlot(), and Segment().

◆ m_charinfo

CharInfo * Segment::m_charinfo
private

Definition at line 169 of file Segment.h.

Referenced by appendSlot(), associateChars(), charinfo(), read_text(), and ~Segment().

◆ m_collisions

SlotCollision * Segment::m_collisions
private

Definition at line 170 of file Segment.h.

Referenced by collisionInfo(), hasCollisionInfo(), initCollisions(), and ~Segment().

◆ m_defaultOriginal

int Segment::m_defaultOriginal
private

Definition at line 178 of file Segment.h.

Referenced by defaultOriginal().

◆ m_dir

int8 Segment::m_dir
private

Definition at line 179 of file Segment.h.

Referenced by currdir(), dir(), finalise(), justify(), linkClusters(), and reverseSlots().

◆ m_face

◆ m_feats

FeatureList Segment::m_feats
private

Definition at line 166 of file Segment.h.

Referenced by addFeatures(), getFeature(), getFeatures(), and setFeature().

◆ m_first

Slot * Segment::m_first
private

◆ m_flags

uint8 Segment::m_flags
private

Definition at line 180 of file Segment.h.

Referenced by flags(), and hasCollisionInfo().

◆ m_freeJustifies

SlotJustify * Segment::m_freeJustifies
private

Definition at line 168 of file Segment.h.

Referenced by freeJustify(), and newJustify().

◆ m_freeSlots

Slot * Segment::m_freeSlots
private

Definition at line 167 of file Segment.h.

Referenced by freeSlot(), and newSlot().

◆ m_justifies

JustifyRope Segment::m_justifies
private

Definition at line 165 of file Segment.h.

Referenced by hasJustification(), newJustify(), and ~Segment().

◆ m_last

Slot * Segment::m_last
private

◆ m_numCharinfo

size_t Segment::m_numCharinfo
private

Definition at line 177 of file Segment.h.

Referenced by charinfo(), charInfoCount(), and newSlot().

◆ m_numGlyphs

size_t Segment::m_numGlyphs
private

Definition at line 176 of file Segment.h.

Referenced by extendLength(), newSlot(), and slotCount().

◆ m_passBits

uint8 Segment::m_passBits
private

Definition at line 181 of file Segment.h.

Referenced by appendSlot(), mergePassBits(), and passBits().

◆ m_silf

◆ m_slots

SlotRope Segment::m_slots
private

Definition at line 163 of file Segment.h.

Referenced by newSlot(), and ~Segment().

◆ m_userAttrs

AttributeRope Segment::m_userAttrs
private

Definition at line 164 of file Segment.h.

Referenced by newSlot(), and ~Segment().


The documentation for this class was generated from the following files: