Euphoria
eu::render::UiTextCompileVisitor Struct Reference
Inheritance diagram for eu::render::UiTextCompileVisitor:
eu::core::textparser::Visitor

Public Member Functions

 UiTextCompileVisitor (const DrawableFont &f, float s, ListOfTextDrawCommands *li)
 
void on_text (const std::string &text) override
 
void on_image (const std::string &image) override
 
void on_begin () override
 
void on_end () override
 
void add_char_index (int code_point)
 
- Public Member Functions inherited from eu::core::textparser::Visitor
 Visitor ()=default
 
virtual ~Visitor ()=default
 
 Visitor (const Visitor &other)=delete
 
void operator= (const Visitor &)=delete
 
 Visitor (Visitor &&other)=delete
 
void operator= (Visitor &&)=delete
 

Public Attributes

const DrawableFontfont
 
float size
 
bool apply_highlight = false
 
vec2f position = vec2f{0, 0}
 
int last_char_index = 0
 
ListOfTextDrawCommandslist
 

Detailed Description

Definition at line 372 of file font.cc.

Constructor & Destructor Documentation

◆ UiTextCompileVisitor()

eu::render::UiTextCompileVisitor::UiTextCompileVisitor ( const DrawableFont f,
float  s,
ListOfTextDrawCommands li 
)
inline

Definition at line 383 of file font.cc.

Member Function Documentation

◆ add_char_index()

void eu::render::UiTextCompileVisitor::add_char_index ( int  code_point)
inline

Definition at line 444 of file font.cc.

◆ on_begin()

void eu::render::UiTextCompileVisitor::on_begin ( )
inlineoverridevirtual

Implements eu::core::textparser::Visitor.

Definition at line 430 of file font.cc.

◆ on_end()

void eu::render::UiTextCompileVisitor::on_end ( )
inlineoverridevirtual

Implements eu::core::textparser::Visitor.

Definition at line 437 of file font.cc.

◆ on_image()

void eu::render::UiTextCompileVisitor::on_image ( const std::string &  image)
inlineoverridevirtual

Implements eu::core::textparser::Visitor.

Definition at line 411 of file font.cc.

◆ on_text()

void eu::render::UiTextCompileVisitor::on_text ( const std::string &  text)
inlineoverridevirtual

Implements eu::core::textparser::Visitor.

Definition at line 397 of file font.cc.

Member Data Documentation

◆ apply_highlight

bool eu::render::UiTextCompileVisitor::apply_highlight = false

Definition at line 376 of file font.cc.

◆ font

const DrawableFont& eu::render::UiTextCompileVisitor::font

Definition at line 374 of file font.cc.

◆ last_char_index

int eu::render::UiTextCompileVisitor::last_char_index = 0

Definition at line 378 of file font.cc.

◆ list

ListOfTextDrawCommands* eu::render::UiTextCompileVisitor::list

Definition at line 381 of file font.cc.

◆ position

vec2f eu::render::UiTextCompileVisitor::position = vec2f{0, 0}

Definition at line 377 of file font.cc.

◆ size

float eu::render::UiTextCompileVisitor::size

Definition at line 375 of file font.cc.


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