Visual run contains data about the bit of text with the same font. More...
Public Member Functions | |
FallbackVisualRun (Font *font, const WChar *chars, int glyph_count, int x) | |
Create the visual run. | |
~FallbackVisualRun () | |
Free all data. | |
const Font * | GetFont () const |
Get the font associated with this run. | |
int | GetGlyphCount () const |
Get the number of glyhps in this run. | |
const GlyphID * | GetGlyphs () const |
Get the glyhps of this run. | |
const float * | GetPositions () const |
Get the positions of this run. | |
int | GetLeading () const |
Get the height of this font. | |
const int * | GetGlyphToCharMap () const |
Get the glyph-to-character map for this visual run. | |
Private Attributes | |
Font * | font |
The font used to layout these. | |
GlyphID * | glyphs |
The glyphs we're drawing. | |
float * | positions |
The positions of the glyphs. | |
int * | glyph_to_char |
The char index of the glyphs. | |
int | glyph_count |
The number of glyphs. |
Visual run contains data about the bit of text with the same font.
Definition at line 243 of file gfx_layout.cpp.
FallbackParagraphLayout::FallbackVisualRun::FallbackVisualRun | ( | Font * | font, | |
const WChar * | chars, | |||
int | char_count, | |||
int | x | |||
) |
Create the visual run.
font | The font to use for this run. | |
chars | The characters to use for this run. | |
char_count | The number of characters in this run. | |
x | The initial x position for this run. |
Definition at line 288 of file gfx_layout.cpp.
References glyph_count, glyph_to_char, glyphs, and positions.
FallbackParagraphLayout::FallbackVisualRun::~FallbackVisualRun | ( | ) |
Free all data.
Definition at line 308 of file gfx_layout.cpp.
References free(), glyph_to_char, glyphs, and positions.
const Font * FallbackParagraphLayout::FallbackVisualRun::GetFont | ( | ) | const [virtual] |
Get the font associated with this run.
Implements ParagraphLayouter::VisualRun.
Definition at line 319 of file gfx_layout.cpp.
References font.
Referenced by GetLeading().
int FallbackParagraphLayout::FallbackVisualRun::GetGlyphCount | ( | ) | const [virtual] |
Get the number of glyhps in this run.
Implements ParagraphLayouter::VisualRun.
Definition at line 328 of file gfx_layout.cpp.
References glyph_count.
const GlyphID * FallbackParagraphLayout::FallbackVisualRun::GetGlyphs | ( | ) | const [virtual] |
Get the glyhps of this run.
Implements ParagraphLayouter::VisualRun.
Definition at line 337 of file gfx_layout.cpp.
References glyphs.
const int * FallbackParagraphLayout::FallbackVisualRun::GetGlyphToCharMap | ( | ) | const [virtual] |
Get the glyph-to-character map for this visual run.
Implements ParagraphLayouter::VisualRun.
Definition at line 355 of file gfx_layout.cpp.
References glyph_to_char.
int FallbackParagraphLayout::FallbackVisualRun::GetLeading | ( | ) | const [virtual] |
Get the height of this font.
Implements ParagraphLayouter::VisualRun.
Definition at line 364 of file gfx_layout.cpp.
References GetFont().
const float * FallbackParagraphLayout::FallbackVisualRun::GetPositions | ( | ) | const [virtual] |
Get the positions of this run.
Implements ParagraphLayouter::VisualRun.
Definition at line 346 of file gfx_layout.cpp.
References positions.