src/engine.c
/*!
 * Draws all the layout_sets. To prevent overlapping, the left set "pushes" the
 center set to the right, and the right set always supercedes the others.
 * @see engine_draw_set
 */
Draws all the layout_sets. To prevent overlapping, the left set "pushes" the
center set to the right, and the right set always supercedes the others.
Draws all the layout_sets . To prevent overlapping the left set " pushes " the center set to the right and the right set always supercedes the others .
static void engine_draw_sets()
{
	unsigned int left_width = layout_set_get_pixel_width(left_set);
	unsigned int right_width = layout_set_get_pixel_width(right_set);
	unsigned int center_width = layout_set_get_pixel_width(center_set);
	int right_begin = canvas_width - right_width;
	int right_end = canvas_width;
	engine_draw_set(right_set, right_begin, right_end);
	int left_begin = 0;
	int left_end = left_width;
	if (left_end > right_begin)
		left_end = right_begin;
	engine_draw_set(left_set, left_begin, left_end);
	int center_begin = (canvas_width - center_width) / 2;
	if (center_begin < left_end)
		center_begin = left_end;
	int center_end = right_begin;
	engine_draw_set(center_set, center_begin, center_end);
}
static void engine_draw_sets ( ) { unsigned int left_width = layout_set_get_pixel_width ( left_set ) ; unsigned int right_width = layout_set_get_pixel_width ( right_set ) ; unsigned int center_width = layout_set_get_pixel_width ( center_set ) ; int right_begin = canvas_width - right_width ; int right_end = canvas_width ; engine_draw_set ( right_set , right_begin , right_end ) ; int left_begin = 0 ; int left_end = left_width ; if ( left_end > right_begin ) left_end = right_begin ; engine_draw_set ( left_set , left_begin , left_end ) ; int center_begin = ( canvas_width - center_width ) / 2 ; if ( center_begin < left_end ) center_begin = left_end ; int center_end = right_begin ; engine_draw_set ( center_set , center_begin , center_end ) ; }
Draws all the layout_sets.
Draws all the layout_sets .