Home | All Classes | Grouped Classes | Index | Search
Returns the drawn size of a string.
CL_Size get_size(
unsigned char letter);
CL_Size get_size(
const std::string& str, const CL_Size& max_size = CL_Size(0, 0), const std::string& delim = std::string(" "));
CL_Size get_size(
const std::string::const_iterator& start, const std::string::const_iterator& end, const CL_Size& max_size = CL_Size(0, 0), const std::string& delim = std::string(" "));
Parameters:
Return value:
The size in pixels.
Detailed description:
If all you want is the size, then its more efficient to call this function than to use test_draw.
See also: