Home | All Classes | Grouped Classes | Index | Search
Draws text to a graphic context.
CL_Font::PrintInfo draw(
int x, int y, const std::string& str, CL_GraphicContext* context = 0);
CL_Font::PrintInfo draw(
const CL_Rect& dest, const std::string& str, const std::string& delim = std::string(" "), CL_GraphicContext* context = 0);
CL_Font::PrintInfo draw(
int x, int y, const std::string::const_iterator& start, const std::string::const_iterator& end, CL_GraphicContext* context = 0);
CL_Font::PrintInfo draw(
const CL_Rect& dest, const std::string::const_iterator& start, const std::string::const_iterator& end, const std::string& delim = std::string(" "), CL_GraphicContext* context = 0);
Parameters:
Return value:
A CL_Font::PrintInfo, containing stats about the text that was 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: