Print text on gc adding elipses if it does not fit.
void CL_Font::draw_text_ellipsis( CL_GraphicContext & gc, int x, int y, CL_Rect content_box, const CL_StringRef & text, const CL_Colorf & color = CL_Colorf::white ); void CL_Font::draw_text_ellipsis( CL_GraphicContext & gc, float x, float y, CL_Rectf content_box, const CL_StringRef & text, const CL_Colorf & color = CL_Colorf::white ); void CL_Font::draw_text_ellipsis( CL_GraphicContext & gc, const CL_Pointf & position, CL_Rectf content_box, const CL_StringRef & text, const CL_Colorf & color = CL_Colorf::white );
Detailed description:
Multiline text (seperated by /n) is supported