src/engine.c
/*!
 * Draw a layout_set, from left to right.
 * @param set the layout_set.
 * @param lower_limit the X coordinate on the canvas to start drawing.
 * @param upper_limit the X coordinate on the canvas to stop drawing.
 * @see engine_draw_text
 */
Draw a layout_set, from left to right.
@param set the layout_set.
@param lower_limit the X coordinate on the canvas to start drawing.
@param upper_limit the X coordinate on the canvas to stop drawing.
Draw a layout_set from left to right . @param set the layout_set . @param lower_limit the X coordinate on the canvas to start drawing . @param upper_limit the X coordinate on the canvas to stop drawing .
static void engine_draw_set(struct layout_set *set,
		int lower_limit, int upper_limit)
{
	for ( ; set != NULL; set = layout_set_get_next(set)) {
		PangoLayout *current = layout_set_get_layout(set);
		int width, height;
		pango_layout_get_pixel_size(current, &width, &height);
		pango_layout_set_width(current,
				(1 + upper_limit - lower_limit) * PANGO_SCALE);
		engine_draw_text(current, lower_limit, height);
		lower_limit += width;
	}
}
static void engine_draw_set ( struct layout_set * set , int lower_limit , int upper_limit ) { for ( ; set != NULL ; set = layout_set_get_next ( set ) ) { PangoLayout * current = layout_set_get_layout ( set ) ; int width , height ; pango_layout_get_pixel_size ( current , & width , & height ) ; pango_layout_set_width ( current , ( 1 + upper_limit - lower_limit ) * PANGO_SCALE ) ; engine_draw_text ( current , lower_limit , height ) ; lower_limit += width ; } }
Draw a layout_set, from left to right.
Draw a layout_set from left to right .