Home | All Classes | Grouped Classes | Index | Search
Draws text onto a graphics context.
int draw( int x, int y, const std::string& str, CL_GraphicContext* context = 0); int draw( CL_Rect dest, const std::string& str, CL_GraphicContext* context = 0); int draw( int x, int y, std::string::const_iterator start, std::string::const_iterator end, CL_GraphicContext* context = 0); int draw( CL_Rect dest, std::string::const_iterator start, std::string::const_iterator end, CL_GraphicContext* context = 0);
Parameters:
Return value:
The number of glyphs that were 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:
CL_Display | CL_GraphicContext | CL_Rect | CL_TextStyler