Function TCOD_console_get_height_rect

Function Documentation

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.

Parameters
  • 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 – A format string as if passed to printf.

  • ... – Variadic arguments as if passed to printf.

Returns

The number of lines that would have been printed.