iv::TextSegment Class Referenceabstract

#include <TextLayout.hpp>

Public Member Functions

 TextSegment (Elem *elem)
 
Instanceinstance () const
 
Elemelem ()
 
const Elemelem () const
 
virtual FontMesh::Geometry geometry_Compute (FontMesh::Location const &)=0
 

Public Attributes

ClientMarker cm
 
bool geometry_dirty
 
DirtyAttr< FontMesh::Locationlocation
 

Detailed Description

Definition at line 14 of file TextLayout.hpp.

Constructor & Destructor Documentation

◆ TextSegment()

iv::TextSegment::TextSegment ( Elem elem)

Definition at line 7 of file TextLayout.cpp.

Member Function Documentation

◆ instance()

Instance * iv::TextSegment::instance ( ) const

Definition at line 15 of file TextLayout.cpp.

◆ elem() [1/2]

const Elem * iv::TextSegment::elem ( )

Definition at line 20 of file TextLayout.cpp.

◆ elem() [2/2]

const Elem* iv::TextSegment::elem ( ) const

◆ geometry_Compute()

virtual FontMesh::Geometry iv::TextSegment::geometry_Compute ( FontMesh::Location const &  )
pure virtual

Member Data Documentation

◆ cm

ClientMarker iv::TextSegment::cm

Definition at line 17 of file TextLayout.hpp.

◆ geometry_dirty

bool iv::TextSegment::geometry_dirty

This triggers first pass and second pass layout recomputation. Acts like Dirty< void > (just dirty flag without real value). It is set to true when geometry_Compute method would return a different result with the same input than before.

Definition at line 31 of file TextLayout.hpp.

◆ location

DirtyAttr< FontMesh::Location > iv::TextSegment::location

Definition at line 40 of file TextLayout.hpp.


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