15 #ifndef HELP_TOPIC_GENERATORS_HPP
16 #define HELP_TOPIC_GENERATORS_HPP
47 typedef std::pair< std::string, unsigned >
item;
virtual std::string operator()() const
GLuint GLuint GLsizei GLenum type
const std::string variation_
void push_header(std::vector< item > &row, const std::string &name) const
const int normal_font_size
terrain_topic_generator(const terrain_type &type)
std::string bold(const std::string &s)
const terrain_type & type_
std::pair< std::string, unsigned > item
virtual std::string operator()() const
GLuint const GLchar * name
GLenum GLenum GLvoid * row
Generate a topic text on the fly.
unit_topic_generator(const unit_type &t, std::string variation="")
GLsizei const GLcharARB ** string
int line_width(const std::string &line, int font_size, int style)
Determine the width of a line of text given a certain font size.