comparison console/libgnt/gntutils.h @ 14420:c4a32405af68

[gaim-migrate @ 17128] Keep things neat and clean in gnt_util_onscreen_width_to_pointer. The only use of this function currently is to truncate a string to make sure it fits in the drawing area, eg, the title of a window, or in the combobox. The function is called on a newly allocated string, which is truncated (if necessary), printed, and freed. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 02 Sep 2006 18:55:27 +0000
parents 70f52ff1caec
children cfd5bcc06a7e
comparison
equal deleted inserted replaced
14419:b50aa149e09d 14420:c4a32405af68
6 void gnt_util_get_text_bound(const char *text, int *width, int *height); 6 void gnt_util_get_text_bound(const char *text, int *width, int *height);
7 7
8 /* excluding *end */ 8 /* excluding *end */
9 int gnt_util_onscreen_width(const char *start, const char *end); 9 int gnt_util_onscreen_width(const char *start, const char *end);
10 10
11 char *gnt_util_onscreen_width_to_pointer(const char *str, int len, int *w); 11 const char *gnt_util_onscreen_width_to_pointer(const char *str, int len, int *w);