textbox.c
// outer code may need line height, width, etc
outer code may need line height, width, etc
outer code may need line height width etc
void textbox_extents(textbox *tb)
{
	int length = strlen(tb->text) + strlen(tb->prompt);
	char *line = alloca(length + 1);
	sprintf(line, "%s%s", tb->prompt, tb->text);
	XftTextExtents8(display, tb->font, (unsigned char*)line, length, &tb->extents);
}
void textbox_extents ( textbox * tb ) { int length = strlen ( tb -> text ) + strlen ( tb -> prompt ) ; char * line = alloca ( length + 1 ) ; sprintf ( line , " " , tb -> prompt , tb -> text ) ; XftTextExtents8 ( display , tb -> font , ( unsigned char * ) line , length , & tb -> extents ) ; }
outer code may need line height, width, etc
outer code may need line height width etc