Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Static Public Member Functions | Public Attributes | List of all members
TextToken Struct Reference

#include <text_parser.h>

Static Public Member Functions

static std::vector< TextTokenparse_bbcode (const std::string &text, const glm::vec4 &default_color)
 

Public Attributes

std::string text
 
glm::vec4 color = {1.0f, 1.0f, 1.0f, 1.0f}
 
bool bold = false
 
bool italic = false
 
bool strike = false
 

Member Function Documentation

◆ parse_bbcode()

std::vector< TextToken > TextToken::parse_bbcode ( const std::string &  text,
const glm::vec4 &  default_color 
)
static

Member Data Documentation

◆ bold

bool TextToken::bold = false

◆ color

glm::vec4 TextToken::color = {1.0f, 1.0f, 1.0f, 1.0f}

◆ italic

bool TextToken::italic = false

◆ strike

bool TextToken::strike = false

◆ text

std::string TextToken::text

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