IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


unsigned short gcGetMaxTextLength ( const char *  text,
unsigned short  maxWidth 
)

This function calculates the maximum number of characters from a given string that will not exceed a given width (in pixels) respecting the current font.

Parameters:
text String whose maximum length is to be calculated
maxWidth Maximum width (in pixels)
Returns:
Maximum length of the given text, 0 on error
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcGetTextWidth





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Jun 27 14:21:34 2017 by Doxygen 1.6.1