textbox.c
// within the parent. handled auto width/height modes
within the parent. handled auto width/height modes
within the parent . handled auto width / height modes
void textbox_moveresize(textbox *tb, int x, int y, int w, int h)
{
	if (tb->flags & TB_AUTOHEIGHT)
		h = tb->font->ascent + tb->font->descent;
	if (tb->flags & TB_AUTOWIDTH)
		w = tb->extents.width;
	if (x != tb->x || y != tb->y || w != tb->w || h != tb->h)
	{
		tb->x = x; tb->y = y; tb->w = MAX(1, w); tb->h = MAX(1, h);
		XMoveResizeWindow(display, tb->window, tb->x, tb->y, tb->w, tb->h);
	}
}
void textbox_moveresize ( textbox * tb , int x , int y , int w , int h ) { if ( tb -> flags & TB_AUTOHEIGHT ) h = tb -> font -> ascent + tb -> font -> descent ; if ( tb -> flags & TB_AUTOWIDTH ) w = tb -> extents . width ; if ( x != tb -> x || y != tb -> y || w != tb -> w || h != tb -> h ) { tb -> x = x ; tb -> y = y ; tb -> w = MAX ( 1 , w ) ; tb -> h = MAX ( 1 , h ) ; XMoveResizeWindow ( display , tb -> window , tb -> x , tb -> y , tb -> w , tb -> h ) ; } }
within the parent.
within the parent .