Home | All Classes | Grouped Classes | Index | Search
Gets the return value of a draw() without drawing anything.
CL_Font::PrintInfo test_draw(
int x, int y, const std::string& str);
CL_Font::PrintInfo test_draw(
const CL_Rect& dest, const std::string& str, const std::string& delim = std::string(" "));
CL_Font::PrintInfo test_draw(
int x, int y, const std::string::const_iterator& start, const std::string::const_iterator& end);
CL_Font::PrintInfo test_draw(
const CL_Rect& dest, const std::string::const_iterator& start, const std::string::const_iterator& end, const std::string& delim = std::string(" "));
Parameters:
Return value:
A CL_Font::PrintInfo, containing stats about the text that would've been drawn.
Detailed description:
You can specify a dest rectangle with a width or height of zero or less to disable word wrapping or height truncating, respectively.
See also: