Implement predict_text_width, which will be needed for named workspaces

This commit is contained in:
Michael Stapelberg
2009-07-24 19:49:06 +02:00
parent ce501c9de9
commit ed60b31fd0
2 changed files with 74 additions and 0 deletions

View File

@ -152,4 +152,12 @@ void xcb_raise_window(xcb_connection_t *conn, xcb_window_t window);
*/
void cached_pixmap_prepare(xcb_connection_t *conn, struct Cached_Pixmap *pixmap);
/**
* Calculate the width of the given text (16-bit characters, UCS) with given
* real length (amount of glyphs) using the given font.
*
*/
int predict_text_width(xcb_connection_t *conn, char *font_pattern, char *text,
int length);
#endif