FlatUI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Enumerations Groups Pages
flatui::FontBufferContext Class Reference

Temporary buffers used while generating FontBuffer. Word boundary information. This information is used only with a typography layout with a justification. More...

#include <font_buffer.h>

Detailed Description

Temporary buffers used while generating FontBuffer. Word boundary information. This information is used only with a typography layout with a justification.

Public Types

typedef std::map
< FontBufferAttributes,
int32_t, FontBufferAttributes >
::iterator 
attribute_map_it
 

Public Member Functions

void Clear ()
 Clear the temporary buffers.
 
void SetAttribute (const FontBufferAttributes &attribute)
 Set attribute to the FontBuffer. The attribute is used while constructing a FontBuffer.
 
attribute_map_it LookUpAttribute (const FontBufferAttributes &attribute)
 Look up an attribute from the attribute map while constructing attributed FontBuffer.
 
bool lastline_must_break () const
 
void set_lastline_must_break (bool b)
 
bool appending_buffer () const
 
void set_appending_buffer (bool b)
 
uint32_t line_start_caret_index () const
 
void set_line_start_caret_index (uint32_t i)
 
std::vector< attribute_map_it > & attribute_history ()
 
std::vector< uint32_t > & word_boundary ()
 
std::vector< uint32_t > & word_boundary_caret ()
 
HbFont * original_font () const
 
void set_original_font (HbFont *font)
 
float original_font_size () const
 
void set_original_font_size (float size)
 
float current_font_size () const
 
void set_current_font_size (float size)
 
int32_t original_base_line () const
 
void set_original_base_line (int32_t base_line)
 

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