assert( dp->divider_offset > 0 ); assert( dp->divider_offset <= _XfeWidth(w) );
assert( dp->divider_fixed_size > 0 ); assert( dp->divider_fixed_size <= _XfeWidth(w) );
LayoutStaticVertical(Widget w){    XfeDividerPart *	dp = _XfeDividerPart(w);    Widget				one = _XfemStaticChildrenIndex(w,0);    Widget				two = _XfemStaticChildrenIndex(w,1);	int			one_x;	int			one_y;	int			one_width;	int			one_height;	int			two_x;	int			two_y;	int			two_width;	int			two_height;		assert( dp->divider_target == 0 || dp->divider_target == 1 );	assert( dp->divider_offset > 0 );	assert( dp->divider_offset <= _XfeWidth(w) );	assert( dp->divider_percentage >= 0 );	assert( dp->divider_percentage <= 100 );	/* children[0] is the target */	if (dp->divider_target == 0)	{		/* Offset */		if (dp->divider_type == XmDIVIDER_OFFSET)		{			one_height = dp->divider_offset;			one_width = _XfemBoundaryWidth(w);			one_x = _XfemBoundaryX(w);			one_y = _XfemBoundaryY(w);			two_height = _XfemBoundaryHeight(w) - one_height;			two_width = _XfemBoundaryWidth(w);			two_x = _XfemBoundaryY(w);			two_y = _XfemBoundaryY(w) + _XfemBoundaryHeight(w) - two_height;		}		/* Percentage */		else		{			one_height = (dp->divider_percentage * _XfemBoundaryHeight(w)) / 100;			one_width = _XfemBoundaryWidth(w);			one_x = _XfemBoundaryX(w);			one_y = _XfemBoundaryY(w);			two_height = _XfemBoundaryHeight(w) - one_height;			two_width = _XfemBoundaryWidth(w);			two_x = _XfemBoundaryX(w);			two_y = _XfemBoundaryY(w) + _XfemBoundaryHeight(w) - two_height;		}	}	/* children[1] is the target */	else	{		/* Offset */		if (dp->divider_type == XmDIVIDER_OFFSET)		{			two_height = dp->divider_offset;			two_width = _XfemBoundaryWidth(w);			two_x = _XfemBoundaryY(w);			two_y = _XfemBoundaryY(w) + _XfemBoundaryHeight(w) - two_height;			one_height = _XfemBoundaryHeight(w) - two_height;			one_width = _XfemBoundaryWidth(w);			one_x = _XfemBoundaryX(w);			one_y = _XfemBoundaryY(w);		}		/* Percentage */		else		{			two_height = (dp->divider_percentage * _XfemBoundaryHeight(w)) / 100;			two_width = _XfemBoundaryWidth(w);			two_x = _XfemBoundaryX(w);			two_y = _XfemBoundaryY(w) + _XfemBoundaryHeight(w) - two_height;			one_height = _XfemBoundaryHeight(w) - two_height;			one_width = _XfemBoundaryWidth(w);			one_x = _XfemBoundaryX(w);			one_y = _XfemBoundaryY(w);		}	}	if (_XfeIsAlive(one))	{		_XfeConfigureWidget(one,one_x,one_y,one_width,one_height);	}	if (_XfeIsAlive(two))	{		_XfeConfigureWidget(two,two_x,two_y,two_width,two_height);	}}