|
libtcod
|
Console string printing module. More...
#include <stdio.h>#include <array>#include <cstdarg>#include <optional>#include <stdexcept>#include <string>#include <string_view>#include "console_printing.h"Go to the source code of this file.
Namespaces | |
| namespace | tcod |
| The libtcod namespace. | |
Functions | |
| void | tcod::print (TCOD_Console &console, const std::array< int, 2 > &xy, std::string_view str, std::optional< TCOD_ColorRGB > fg, std::optional< TCOD_ColorRGB > bg, TCOD_alignment_t alignment=TCOD_LEFT, TCOD_bkgnd_flag_t flag=TCOD_BKGND_SET) |
| Print a string to a console. | |
| int | tcod::print_rect (TCOD_Console &console, const std::array< int, 4 > &rect, std::string_view str, std::optional< TCOD_ColorRGB > fg, std::optional< TCOD_ColorRGB > bg, TCOD_alignment_t alignment=TCOD_LEFT, TCOD_bkgnd_flag_t flag=TCOD_BKGND_SET) |
| Print a string to a console constrained to a bounding box. | |
| int | tcod::get_height_rect (int width, std::string_view str) |
| Return the height of the word-wrapped text with the given width. | |
| TCODLIB_BEGIN_IGNORE_DEPRECATIONS void | tcod::print_frame (struct TCOD_Console &console, const std::array< int, 4 > &rect, std::string_view title, const TCOD_ColorRGB *fg, const TCOD_ColorRGB *bg, TCOD_bkgnd_flag_t flag=TCOD_BKGND_SET, bool clear=true) |
| template<typename... T> | |
| TCODLIB_END_IGNORE_DEPRECATIONS std::string | tcod::stringf (const char *format, T... args) |
| Return a formatted string as a std::string object. | |
Console string printing module.