|
libtcod
|
Deprecated printing functions without full support for UTF-8 or Unicode. More...
Functions | |
| void | TCOD_console_print (TCOD_Console *con, int x, int y, const char *fmt,...) |
| Print an EASCII string on a console, using default colors and alignment. | |
| void | TCOD_console_print_ex (TCOD_Console *con, int x, int y, TCOD_bkgnd_flag_t flag, TCOD_alignment_t alignment, const char *fmt,...) |
| Print an EASCII string on a console, using default colors. | |
| int | TCOD_console_print_rect (TCOD_Console *con, int x, int y, int w, int h, const char *fmt,...) |
| Print an EASCII string on a console constrained to a rectangle, using default colors and alignment. | |
| int | TCOD_console_print_rect_ex (TCOD_Console *con, int x, int y, int w, int h, TCOD_bkgnd_flag_t flag, TCOD_alignment_t alignment, const char *fmt,...) |
| Print an EASCII string on a console constrained to a rectangle, using default colors. | |
| void | TCOD_console_print_frame (TCOD_console_t con, int x, int y, int w, int h, bool empty, TCOD_bkgnd_flag_t flag, const char *fmt,...) |
| Print an EASCII titled, framed region on a console, using default colors and alignment. | |
| int | TCOD_console_get_height_rect (TCOD_Console *con, int x, int y, int w, int h, const char *fmt,...) |
| Return the number of lines that would be printed by an EASCII string. | |
| void | TCOD_console_print_utf (TCOD_Console *con, int x, int y, const wchar_t *fmt,...) |
| void | TCOD_console_print_ex_utf (TCOD_Console *con, int x, int y, TCOD_bkgnd_flag_t flag, TCOD_alignment_t alignment, const wchar_t *fmt,...) |
| int | TCOD_console_print_rect_utf (TCOD_Console *con, int x, int y, int w, int h, const wchar_t *fmt,...) |
| int | TCOD_console_print_rect_ex_utf (TCOD_Console *con, int x, int y, int w, int h, TCOD_bkgnd_flag_t flag, TCOD_alignment_t alignment, const wchar_t *fmt,...) |
| int | TCOD_console_get_height_rect_utf (TCOD_Console *con, int x, int y, int w, int h, const wchar_t *fmt,...) |
Deprecated printing functions without full support for UTF-8 or Unicode.
None of these functions support the full range of Unicode characters. Printing (Unicode) should be used instead.
Functions taking basic char strings only support EASCII codepoints. Providing UTF-8 strings to these functions will result in garbage.
Despite the _utf postfix the wchar_t functions do not handle variable length characters as you'd expect from UTF-16. They only support full Unicode when the platform has a 4 byte wchar_t. A 2 byte wchar_t acts like UCS-2.
| int TCOD_console_get_height_rect | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const char * | fmt, | ||
| ... ) |
Return the number of lines that would be printed by an EASCII string.
| con | A console pointer. |
| x | The starting X coordinate, the left-most position being 0. |
| y | The starting Y coordinate, the top-most position being 0. |
| w | The width of the region. If 0 then the maximum width will be used. |
| h | The height of the region. If 0 then the maximum height will be used. |
| fmt | An EASCII format string as if passed to printf. |
| ... | Variadic arguments as if passed to printf. |
| int TCOD_console_get_height_rect_utf | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const wchar_t * | fmt, | ||
| ... ) |
embed:rst:leading-asterisk .. deprecated:: 1.8
| void TCOD_console_print | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| const char * | fmt, | ||
| ... ) |
Print an EASCII string on a console, using default colors and alignment.
| con | A console pointer. |
| x | The starting X coordinate, the left-most position being 0. |
| y | The starting Y coordinate, the top-most position being 0. |
| fmt | An EASCII format string as if passed to printf. |
| ... | Variadic arguments as if passed to printf. |
| void TCOD_console_print_ex | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| TCOD_bkgnd_flag_t | flag, | ||
| TCOD_alignment_t | alignment, | ||
| const char * | fmt, | ||
| ... ) |
Print an EASCII string on a console, using default colors.
| con | A console pointer. |
| x | The starting X coordinate, the left-most position being 0. |
| y | The starting Y coordinate, the top-most position being 0. |
| flag | The blending flag. |
| alignment | The font alignment to use. |
| fmt | An EASCII format string as if passed to printf. |
| ... | Variadic arguments as if passed to printf. |
| void TCOD_console_print_ex_utf | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| TCOD_bkgnd_flag_t | flag, | ||
| TCOD_alignment_t | alignment, | ||
| const wchar_t * | fmt, | ||
| ... ) |
embed:rst:leading-asterisk .. deprecated:: 1.8 Use TCOD_console_printf_ex instead.
| void TCOD_console_print_frame | ( | TCOD_console_t | con, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| bool | empty, | ||
| TCOD_bkgnd_flag_t | flag, | ||
| const char * | fmt, | ||
| ... ) |
Print an EASCII titled, framed region on a console, using default colors and alignment.
| con | A console pointer. |
| x | The starting X coordinate, the left-most position being 0. |
| y | The starting Y coordinate, the top-most position being 0. |
| w | The width of the frame. |
| h | The height of the frame. |
| empty | If true the characters inside of the frame will be cleared with spaces. |
| flag | The blending flag. |
| fmt | An EASCII format string as if passed to printf. |
| ... | Variadic arguments as if passed to printf. |
This function makes assumptions about the fonts character encoding and may draw garbage with some tilesets.
embed:rst:leading-asterisk .. deprecated:: 1.19 This function is not using Unicode frame characters and has been deprecated.
| int TCOD_console_print_rect | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const char * | fmt, | ||
| ... ) |
Print an EASCII string on a console constrained to a rectangle, using default colors and alignment.
| con | A console pointer. |
| x | The starting X coordinate, the left-most position being 0. |
| y | The starting Y coordinate, the top-most position being 0. |
| w | The width of the region. If 0 then the maximum width will be used. |
| h | The height of the region. If 0 then the maximum height will be used. |
| fmt | An EASCII format string as if passed to printf. |
| ... | Variadic arguments as if passed to printf. |
| int TCOD_console_print_rect_ex | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| TCOD_bkgnd_flag_t | flag, | ||
| TCOD_alignment_t | alignment, | ||
| const char * | fmt, | ||
| ... ) |
Print an EASCII string on a console constrained to a rectangle, using default colors.
| con | A console pointer. |
| x | The starting X coordinate, the left-most position being 0. |
| y | The starting Y coordinate, the top-most position being 0. |
| w | The width of the region. If 0 then the maximum width will be used. |
| h | The height of the region. If 0 then the maximum height will be used. |
| flag | The blending flag. |
| alignment | The font alignment to use. |
| fmt | An EASCII format string as if passed to printf. |
| ... | Variadic arguments as if passed to printf. |
| int TCOD_console_print_rect_ex_utf | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| TCOD_bkgnd_flag_t | flag, | ||
| TCOD_alignment_t | alignment, | ||
| const wchar_t * | fmt, | ||
| ... ) |
embed:rst:leading-asterisk .. deprecated:: 1.8 Use TCOD_console_printf_rect_ex instead.
| int TCOD_console_print_rect_utf | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| const wchar_t * | fmt, | ||
| ... ) |
embed:rst:leading-asterisk .. deprecated:: 1.8 Use TCOD_console_printf_rect instead.
| void TCOD_console_print_utf | ( | TCOD_Console * | con, |
| int | x, | ||
| int | y, | ||
| const wchar_t * | fmt, | ||
| ... ) |
embed:rst:leading-asterisk .. deprecated:: 1.8 Use TCOD_console_printf instead.